;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 2.7.0 #4818 (May 31 2007)
; This file generated Mon Apr 30 18:24:04 2012
;--------------------------------------------------------
	.module rf802_15_4
	.optsdcc -mmcs51 --model-large
	
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl _rand_table
	.globl _IRCON2_P2IF
	.globl _IRCON2_UTX0IF
	.globl _IRCON2_UTX1IF
	.globl _IRCON2_P1IF
	.globl _IRCON2_WDTIF
	.globl _CY
	.globl _AC
	.globl _F0
	.globl _RS1
	.globl _RS0
	.globl _OV
	.globl _F1
	.globl _P
	.globl _IRCON_DMAIF
	.globl _IRCON_T1IF
	.globl _IRCON_T2IF
	.globl _IRCON_T3IF
	.globl _IRCON_T4IF
	.globl _IRCON_P0IF
	.globl _IRCON_STIF
	.globl _IEN1_DMAIE
	.globl _IEN1_T1IE
	.globl _IEN1_T2IE
	.globl _IEN1_T3IE
	.globl _IEN1_T4IE
	.globl _IEN1_P0IE
	.globl _IEN0_RFERRIE
	.globl _IEN0_ADCIE
	.globl _IEN0_URX0IE
	.globl _IEN0_URX1IE
	.globl _IEN0_ENCIE
	.globl _IEN0_STIE
	.globl _IEN0_EA
	.globl _EA
	.globl _P2_4
	.globl _P2_3
	.globl _P2_2
	.globl _P2_1
	.globl _P2_0
	.globl _S0CON_ENCIF_0
	.globl _S0CON_ENCIF_1
	.globl _P1_7
	.globl _P1_6
	.globl _P1_5
	.globl _P1_4
	.globl _P1_3
	.globl _P1_2
	.globl _P1_1
	.globl _P1_0
	.globl _TCON_IT0
	.globl _TCON_RFERRIF
	.globl _TCON_IT1
	.globl _TCON_URX0IF
	.globl _TCON_ADCIF
	.globl _TCON_URX1IF
	.globl _P0_0
	.globl _P0_1
	.globl _P0_2
	.globl _P0_3
	.globl _P0_4
	.globl _P0_5
	.globl _P0_6
	.globl _P0_7
	.globl _P2DIR
	.globl _P1DIR
	.globl _P0DIR
	.globl _U1GCR
	.globl _U1UCR
	.globl _U1BAUD
	.globl _U1BUF
	.globl _U1CSR
	.globl _P2INP
	.globl _P1INP
	.globl _P2SEL
	.globl _P1SEL
	.globl _P0SEL
	.globl _ADCCFG
	.globl _PERCFG
	.globl _B
	.globl _T4CC1
	.globl _T4CCTL1
	.globl _T4CC0
	.globl _T4CCTL0
	.globl _T4CTL
	.globl _T4CNT
	.globl _RFIF
	.globl _IRCON2
	.globl _T1CCTL2
	.globl _T1CCTL1
	.globl _T1CCTL0
	.globl _T1CTL
	.globl _T1CNTH
	.globl _T1CNTL
	.globl _RFST
	.globl _ACC
	.globl _T1CC2H
	.globl _T1CC2L
	.globl _T1CC1H
	.globl _T1CC1L
	.globl _T1CC0H
	.globl _T1CC0L
	.globl _RFD
	.globl _TIMIF
	.globl _DMAREQ
	.globl _DMAARM
	.globl _DMA0CFGH
	.globl _DMA0CFGL
	.globl _DMA1CFGH
	.globl _DMA1CFGL
	.globl _DMAIRQ
	.globl _PSW
	.globl _T3CC1
	.globl _T3CCTL1
	.globl _T3CC0
	.globl _T3CCTL0
	.globl _T3CTL
	.globl _T3CNT
	.globl _WDCTL
	.globl _T2CON
	.globl _MEMCTR
	.globl _CLKCON
	.globl _U0GCR
	.globl _U0UCR
	.globl _T2CNF
	.globl _U0BAUD
	.globl _U0BUF
	.globl _IRCON
	.globl _SLEEP
	.globl _RNDH
	.globl _RNDL
	.globl _ADCH
	.globl _ADCL
	.globl _IP1
	.globl _IEN1
	.globl _RCCTL
	.globl _ADCCON3
	.globl _ADCCON2
	.globl _ADCCON1
	.globl _ENCCS
	.globl _ENCDO
	.globl _ENCDI
	.globl _FWDATA
	.globl _FCTL
	.globl _FADDRH
	.globl _FADDRL
	.globl _FWT
	.globl _IP0
	.globl _IEN0
	.globl _IE
	.globl _T2THD
	.globl _T2TLD
	.globl _T2CAPHPH
	.globl _T2CAPLPL
	.globl _T2OF2
	.globl _T2OF1
	.globl _T2OF0
	.globl _P2
	.globl _T2PEROF2
	.globl _T2PEROF1
	.globl _T2PEROF0
	.globl _S1CON
	.globl _IEN2
	.globl _HSRC
	.globl _S0CON
	.globl _ST2
	.globl _ST1
	.globl _ST0
	.globl _T2CMP
	.globl __XPAGE
	.globl _DPS
	.globl _RFIM
	.globl _P1
	.globl _P0INP
	.globl _P1IEN
	.globl _PICTL
	.globl _P2IFG
	.globl _P1IFG
	.globl _P0IFG
	.globl _TCON
	.globl _PCON
	.globl _U0CSR
	.globl _DPH1
	.globl _DPL1
	.globl _DPH0
	.globl _DPL0
	.globl _SP
	.globl _P0
	.globl _ack_rx
	.globl _slotted
	.globl _ack_flag
	.globl _rf_address_decoder_enable
	.globl _be
	.globl _cap_active
	.globl _device_own_address
	.globl _rf_802_15_4_queue
	.globl _rf_802_15_4_PIB
	.globl _RFD_SHADOW
	.globl _RFSTATUS
	.globl _CHIPID
	.globl _CHVER
	.globl _FSMTC1
	.globl _RXFIFOCNT
	.globl _IOCFG3
	.globl _IOCFG2
	.globl _IOCFG1
	.globl _IOCFG0
	.globl _SHORTADDRL
	.globl _SHORTADDRH
	.globl _PANIDL
	.globl _PANIDH
	.globl _IEEE_ADDR7
	.globl _IEEE_ADDR6
	.globl _IEEE_ADDR5
	.globl _IEEE_ADDR4
	.globl _IEEE_ADDR3
	.globl _IEEE_ADDR2
	.globl _IEEE_ADDR1
	.globl _IEEE_ADDR0
	.globl _DACTSTL
	.globl _DACTSTH
	.globl _ADCTSTL
	.globl _ADCTSTH
	.globl _FSMSTATE
	.globl _AGCCTRLL
	.globl _AGCCTRLH
	.globl _MANORL
	.globl _MANORH
	.globl _MANANDL
	.globl _MANANDH
	.globl _FSMTCL
	.globl _FSMTCH
	.globl _RFPWR
	.globl _CSPT
	.globl _CSPCTRL
	.globl _CSPZ
	.globl _CSPY
	.globl _CSPX
	.globl _FSCTRLL
	.globl _FSCTRLH
	.globl _RXCTRL1L
	.globl _RXCTRL1H
	.globl _RXCTRL0L
	.globl _RXCTRL0H
	.globl _TXCTRLL
	.globl _TXCTRLH
	.globl _SYNCWORDL
	.globl _SYNCWORDH
	.globl _RSSIL
	.globl _RSSIH
	.globl _MDMCTRL1L
	.globl _MDMCTRL1H
	.globl _MDMCTRL0L
	.globl _MDMCTRL0H
	.globl _rf_802_15_4_init
	.globl _rf_802_15_4_handle
	.globl _rf_802_15_4_check
	.globl _vmac_task
	.globl _mac_header_analyze
	.globl _mac_command_frames_handle
	.globl _rf_802_15_4_csma_ca
	.globl _rf_802_15_4_create_mac_frame
	.globl _rf_802_15_4_store_address_to_ram
	.globl _rf_802_15_4_pib_reset
	.globl _rf_802_15_4_ip_layer_address_mode_set
	.globl _mac_sqn_update
	.globl _mac_set_mac_pib_parameter
	.globl _mac_handle_address_decoder
	.globl _mac_ctrl_message_builder
	.globl _mac_random_generate
	.globl _mac_add_address
	.globl _get_coord_address
	.globl _mac_rfd_src_check
	.globl _mac_dest_check
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
	.area RSEG    (DATA)
_P0	=	0x0080
_SP	=	0x0081
_DPL0	=	0x0082
_DPH0	=	0x0083
_DPL1	=	0x0084
_DPH1	=	0x0085
_U0CSR	=	0x0086
_PCON	=	0x0087
_TCON	=	0x0088
_P0IFG	=	0x0089
_P1IFG	=	0x008a
_P2IFG	=	0x008b
_PICTL	=	0x008c
_P1IEN	=	0x008d
_P0INP	=	0x008f
_P1	=	0x0090
_RFIM	=	0x0091
_DPS	=	0x0092
__XPAGE	=	0x0093
_T2CMP	=	0x0094
_ST0	=	0x0095
_ST1	=	0x0096
_ST2	=	0x0097
_S0CON	=	0x0098
_HSRC	=	0x0099
_IEN2	=	0x009a
_S1CON	=	0x009b
_T2PEROF0	=	0x009c
_T2PEROF1	=	0x009d
_T2PEROF2	=	0x009e
_P2	=	0x00a0
_T2OF0	=	0x00a1
_T2OF1	=	0x00a2
_T2OF2	=	0x00a3
_T2CAPLPL	=	0x00a4
_T2CAPHPH	=	0x00a5
_T2TLD	=	0x00a6
_T2THD	=	0x00a7
_IE	=	0x00a8
_IEN0	=	0x00a8
_IP0	=	0x00a9
_FWT	=	0x00ab
_FADDRL	=	0x00ac
_FADDRH	=	0x00ad
_FCTL	=	0x00ae
_FWDATA	=	0x00af
_ENCDI	=	0x00b1
_ENCDO	=	0x00b2
_ENCCS	=	0x00b3
_ADCCON1	=	0x00b4
_ADCCON2	=	0x00b5
_ADCCON3	=	0x00b6
_RCCTL	=	0x00b7
_IEN1	=	0x00b8
_IP1	=	0x00b9
_ADCL	=	0x00ba
_ADCH	=	0x00bb
_RNDL	=	0x00bc
_RNDH	=	0x00bd
_SLEEP	=	0x00be
_IRCON	=	0x00c0
_U0BUF	=	0x00c1
_U0BAUD	=	0x00c2
_T2CNF	=	0x00c3
_U0UCR	=	0x00c4
_U0GCR	=	0x00c5
_CLKCON	=	0x00c6
_MEMCTR	=	0x00c7
_T2CON	=	0x00c8
_WDCTL	=	0x00c9
_T3CNT	=	0x00ca
_T3CTL	=	0x00cb
_T3CCTL0	=	0x00cc
_T3CC0	=	0x00cd
_T3CCTL1	=	0x00ce
_T3CC1	=	0x00cf
_PSW	=	0x00d0
_DMAIRQ	=	0x00d1
_DMA1CFGL	=	0x00d2
_DMA1CFGH	=	0x00d3
_DMA0CFGL	=	0x00d4
_DMA0CFGH	=	0x00d5
_DMAARM	=	0x00d6
_DMAREQ	=	0x00d7
_TIMIF	=	0x00d8
_RFD	=	0x00d9
_T1CC0L	=	0x00da
_T1CC0H	=	0x00db
_T1CC1L	=	0x00dc
_T1CC1H	=	0x00dd
_T1CC2L	=	0x00de
_T1CC2H	=	0x00df
_ACC	=	0x00e0
_RFST	=	0x00e1
_T1CNTL	=	0x00e2
_T1CNTH	=	0x00e3
_T1CTL	=	0x00e4
_T1CCTL0	=	0x00e5
_T1CCTL1	=	0x00e6
_T1CCTL2	=	0x00e7
_IRCON2	=	0x00e8
_RFIF	=	0x00e9
_T4CNT	=	0x00ea
_T4CTL	=	0x00eb
_T4CCTL0	=	0x00ec
_T4CC0	=	0x00ed
_T4CCTL1	=	0x00ee
_T4CC1	=	0x00ef
_B	=	0x00f0
_PERCFG	=	0x00f1
_ADCCFG	=	0x00f2
_P0SEL	=	0x00f3
_P1SEL	=	0x00f4
_P2SEL	=	0x00f5
_P1INP	=	0x00f6
_P2INP	=	0x00f7
_U1CSR	=	0x00f8
_U1BUF	=	0x00f9
_U1BAUD	=	0x00fa
_U1UCR	=	0x00fb
_U1GCR	=	0x00fc
_P0DIR	=	0x00fd
_P1DIR	=	0x00fe
_P2DIR	=	0x00ff
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
	.area RSEG    (DATA)
_P0_7	=	0x0087
_P0_6	=	0x0086
_P0_5	=	0x0085
_P0_4	=	0x0084
_P0_3	=	0x0083
_P0_2	=	0x0082
_P0_1	=	0x0081
_P0_0	=	0x0080
_TCON_URX1IF	=	0x008f
_TCON_ADCIF	=	0x008d
_TCON_URX0IF	=	0x008b
_TCON_IT1	=	0x008a
_TCON_RFERRIF	=	0x0089
_TCON_IT0	=	0x0088
_P1_0	=	0x0090
_P1_1	=	0x0091
_P1_2	=	0x0092
_P1_3	=	0x0093
_P1_4	=	0x0094
_P1_5	=	0x0095
_P1_6	=	0x0096
_P1_7	=	0x0097
_S0CON_ENCIF_1	=	0x0099
_S0CON_ENCIF_0	=	0x0098
_P2_0	=	0x00a0
_P2_1	=	0x00a1
_P2_2	=	0x00a2
_P2_3	=	0x00a3
_P2_4	=	0x00a4
_EA	=	0x00af
_IEN0_EA	=	0x00af
_IEN0_STIE	=	0x00ad
_IEN0_ENCIE	=	0x00ac
_IEN0_URX1IE	=	0x00ab
_IEN0_URX0IE	=	0x00aa
_IEN0_ADCIE	=	0x00a9
_IEN0_RFERRIE	=	0x00a8
_IEN1_P0IE	=	0x00bd
_IEN1_T4IE	=	0x00bc
_IEN1_T3IE	=	0x00bb
_IEN1_T2IE	=	0x00ba
_IEN1_T1IE	=	0x00b9
_IEN1_DMAIE	=	0x00b8
_IRCON_STIF	=	0x00c7
_IRCON_P0IF	=	0x00c5
_IRCON_T4IF	=	0x00c4
_IRCON_T3IF	=	0x00c3
_IRCON_T2IF	=	0x00c2
_IRCON_T1IF	=	0x00c1
_IRCON_DMAIF	=	0x00c0
_P	=	0x00d0
_F1	=	0x00d1
_OV	=	0x00d2
_RS0	=	0x00d3
_RS1	=	0x00d4
_F0	=	0x00d5
_AC	=	0x00d6
_CY	=	0x00d7
_IRCON2_WDTIF	=	0x00ec
_IRCON2_P1IF	=	0x00eb
_IRCON2_UTX1IF	=	0x00ea
_IRCON2_UTX0IF	=	0x00e9
_IRCON2_P2IF	=	0x00e8
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
	.area REG_BANK_0	(REL,OVR,DATA)
	.ds 8
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
	.area DSEG    (DATA)
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
	.area OSEG    (OVR,DATA)
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
	.area ISEG    (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
	.area IABS    (ABS,DATA)
	.area IABS    (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
	.area BSEG    (BIT)
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
	.area PSEG    (PAG,XDATA)
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
	.area XSEG    (XDATA)
_MDMCTRL0H	=	0xdf02
_MDMCTRL0L	=	0xdf03
_MDMCTRL1H	=	0xdf04
_MDMCTRL1L	=	0xdf05
_RSSIH	=	0xdf06
_RSSIL	=	0xdf07
_SYNCWORDH	=	0xdf08
_SYNCWORDL	=	0xdf09
_TXCTRLH	=	0xdf0a
_TXCTRLL	=	0xdf0b
_RXCTRL0H	=	0xdf0c
_RXCTRL0L	=	0xdf0d
_RXCTRL1H	=	0xdf0e
_RXCTRL1L	=	0xdf0f
_FSCTRLH	=	0xdf10
_FSCTRLL	=	0xdf11
_CSPX	=	0xdf12
_CSPY	=	0xdf13
_CSPZ	=	0xdf14
_CSPCTRL	=	0xdf15
_CSPT	=	0xdf16
_RFPWR	=	0xdf17
_FSMTCH	=	0xdf20
_FSMTCL	=	0xdf21
_MANANDH	=	0xdf22
_MANANDL	=	0xdf23
_MANORH	=	0xdf24
_MANORL	=	0xdf25
_AGCCTRLH	=	0xdf26
_AGCCTRLL	=	0xdf27
_FSMSTATE	=	0xdf39
_ADCTSTH	=	0xdf3a
_ADCTSTL	=	0xdf3b
_DACTSTH	=	0xdf3c
_DACTSTL	=	0xdf3d
_IEEE_ADDR0	=	0xdf43
_IEEE_ADDR1	=	0xdf44
_IEEE_ADDR2	=	0xdf45
_IEEE_ADDR3	=	0xdf46
_IEEE_ADDR4	=	0xdf47
_IEEE_ADDR5	=	0xdf48
_IEEE_ADDR6	=	0xdf49
_IEEE_ADDR7	=	0xdf4a
_PANIDH	=	0xdf4b
_PANIDL	=	0xdf4c
_SHORTADDRH	=	0xdf4d
_SHORTADDRL	=	0xdf4e
_IOCFG0	=	0xdf4f
_IOCFG1	=	0xdf50
_IOCFG2	=	0xdf51
_IOCFG3	=	0xdf52
_RXFIFOCNT	=	0xdf53
_FSMTC1	=	0xdf54
_CHVER	=	0xdf60
_CHIPID	=	0xdf61
_RFSTATUS	=	0xdf62
_RFD_SHADOW	=	0xdfd9
_rf_802_15_4_PIB::
	.ds 36
_rf_802_15_4_queue::
	.ds 3
_device_own_address::
	.ds 13
_mac_random_generate_seed_1_1:
	.ds 2
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
	.area XABS    (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG   (XDATA)
_cap_active::
	.ds 1
_be::
	.ds 1
_rf_address_decoder_enable::
	.ds 1
_ack_flag::
	.ds 1
_slotted::
	.ds 1
_ack_rx::
	.ds 1
	.area HOME    (CODE)
	.area GSINIT0 (CODE)
	.area GSINIT1 (CODE)
	.area GSINIT2 (CODE)
	.area GSINIT3 (CODE)
	.area GSINIT4 (CODE)
	.area GSINIT5 (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area CSEG    (CODE)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area HOME    (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area GSINIT  (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_random_generate'
;------------------------------------------------------------
;rand                      Allocated to registers r2 
;seed                      Allocated with name '_mac_random_generate_seed_1_1'
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2419: static unsigned seed =1;
	mov	dptr,#_mac_random_generate_seed_1_1
	mov	a,#0x01
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME    (CODE)
	.area HOME    (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG    (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_init'
;------------------------------------------------------------
;buf                       Allocated to registers 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:162: portCHAR rf_802_15_4_init( buffer_t *buf )
;	-----------------------------------------
;	 function rf_802_15_4_init
;	-----------------------------------------
_rf_802_15_4_init:
	ar2 = 0x02
	ar3 = 0x03
	ar4 = 0x04
	ar5 = 0x05
	ar6 = 0x06
	ar7 = 0x07
	ar0 = 0x00
	ar1 = 0x01
;	../../Common/modules/rf802_15_4.c:179: rf_802_15_4_queue = xQueueCreate( 6, sizeof( buffer_t * ) );
	mov	a,#0x03
	push	acc
	mov	dpl,#0x06
	lcall	_xQueueCreate
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
	dec	sp
	mov	dptr,#_rf_802_15_4_queue
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:180: rf_802_15_4_pib_reset();
	lcall	_rf_802_15_4_pib_reset
;	../../Common/modules/rf802_15_4.c:181: rf_init();
	lcall	_rf_init
;	../../Common/modules/rf802_15_4.c:182: xTaskCreate( vmac_task, "MAC", configMAXIMUM_STACK_SIZE, NULL, (tskIDLE_PRIORITY + 3 ), (xTaskHandle *) NULL );
	clr	a
	push	acc
	push	acc
	push	acc
	mov	a,#0x03
	push	acc
	clr	a
	push	acc
	push	acc
	push	acc
	mov	a,#0xDC
	push	acc
	clr	a
	push	acc
	mov	a,#__str_0
	push	acc
	mov	a,#(__str_0 >> 8)
	push	acc
	mov	a,#0x80
	push	acc
	mov	dptr,#_vmac_task
	lcall	_xTaskCreate
	mov	a,sp
	add	a,#0xf4
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:183: return pdTRUE;
	mov	dpl,#0x01
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_handle'
;------------------------------------------------------------
;buf                       Allocated to stack - offset 1
;destination_match         Allocated to stack - offset 4
;packet_check              Allocated to stack - offset 5
;ind                       Allocated to stack - offset 6
;header_analyze_result     Allocated to stack - offset 7
;sloc0                     Allocated to stack - offset 11
;sloc1                     Allocated to stack - offset 14
;sloc2                     Allocated to stack - offset 15
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:207: portCHAR rf_802_15_4_handle( buffer_t *buf )
;	-----------------------------------------
;	 function rf_802_15_4_handle
;	-----------------------------------------
_rf_802_15_4_handle:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x0e
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:214: uint8_t destination_match=0, packet_check=0,ind=0;
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:219: if(buf->options.type == BUFFER_CONTROL && buf)		/* Control message received */
	mov	r0,_bp
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	inc	r0
	mov	ar5,@r0
	mov	a,#0x26
	add	a,r3
	mov	r6,a
	clr	a
	addc	a,r4
	mov	r7,a
	mov	ar2,r5
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	lcall	__gptrget
	mov	r6,a
	cjne	r6,#0x01,00104$
	mov	a,r3
	orl	a,r4
	orl	a,r5
	jz	00104$
;	../../Common/modules/rf802_15_4.c:221: buf->options.handle_type = HANDLE_CONTROL;
	mov	a,#0x26
	add	a,r3
	mov	r3,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	a,#0x03
	add	a,r3
	mov	r3,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	mov	a,#0x02
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:222: if (xQueueSend(rf_802_15_4_queue, &buf,10) == pdFALSE)
	mov	r2,_bp
	inc	r2
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dptr,#_rf_802_15_4_queue
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	a,#0x0A
	push	acc
	clr	a
	push	acc
	push	ar2
	push	ar3
	push	ar4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_xQueueSend
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r2
	jnz	00102$
;	../../Common/modules/rf802_15_4.c:224: stack_buffer_push(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_push
00102$:
;	../../Common/modules/rf802_15_4.c:226: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:227: return pdTRUE;
	mov	dpl,#0x01
	ljmp	00163$
00104$:
;	../../Common/modules/rf802_15_4.c:230: if(buf && (buf->dir == BUFFER_DOWN))/* From upperlayer */
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00198$
	ljmp	00114$
00198$:
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x1F
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	cjne	r5,#0x01,00199$
	sjmp	00200$
00199$:
	ljmp	00114$
00200$:
;	../../Common/modules/rf802_15_4.c:232: buf->options.handle_type = HANDLE_TX;
	mov	a,#0x26
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	a,#0x03
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:233: switch(rf_802_15_4_PIB.mode)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	movx	a,@dptr
	mov	r5,a
	jz	00202$
	sjmp	00109$
00202$:
;	../../Common/modules/rf802_15_4.c:236: if (xQueueSend(rf_802_15_4_queue, &buf,20) == pdFALSE)
	mov	r5,_bp
	inc	r5
	mov	ar2,r5
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dptr,#_rf_802_15_4_queue
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	a,#0x14
	push	acc
	clr	a
	push	acc
	push	ar2
	push	ar3
	push	ar4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_xQueueSend
	mov	r5,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r5
	jnz	00108$
;	../../Common/modules/rf802_15_4.c:238: stack_buffer_push(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_push
00108$:
;	../../Common/modules/rf802_15_4.c:240: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:241: break;
;	../../Common/modules/rf802_15_4.c:243: default:
	sjmp	00112$
00109$:
;	../../Common/modules/rf802_15_4.c:269: if(buf)
	mov	a,r2
	orl	a,r3
	orl	a,r4
	jz	00112$
;	../../Common/modules/rf802_15_4.c:271: stack_buffer_free(buf);
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:272: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:275: }
00112$:
;	../../Common/modules/rf802_15_4.c:276: return pdTRUE;
	mov	dpl,#0x01
	ljmp	00163$
00114$:
;	../../Common/modules/rf802_15_4.c:278: if(buf &&  (buf->dir == BUFFER_UP))		/* Detect if buffer is a control message  */
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00205$
	ljmp	00161$
00205$:
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x1F
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	jz	00206$
	ljmp	00161$
00206$:
;	../../Common/modules/rf802_15_4.c:280: header_analyze_result.ack_req = 0;
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	inc	a
	mov	r1,a
	mov	@r1,#0x00
;	../../Common/modules/rf802_15_4.c:281: header_analyze_result.f_type = 0;
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:284: mac_header_analyze(buf, &header_analyze_result);
	mov	ar5,r0
	mov	r6,#0x00
	mov	r7,#0x40
	push	ar5
	push	ar6
	push	ar7
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_mac_header_analyze
	dec	sp
	dec	sp
	dec	sp
;	../../Common/modules/rf802_15_4.c:285: ind = buf->buf_ptr;
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x20
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	inc	dptr
	lcall	__gptrget
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,ar5
;	../../Common/modules/rf802_15_4.c:287: if(buf->options.rf_lqi > 0x15)
	mov	a,#0x26
	add	a,r2
	mov	r6,a
	clr	a
	addc	a,r3
	mov	r7,a
	mov	ar5,r4
	mov	a,#0x02
	add	a,r6
	mov	r6,a
	clr	a
	addc	a,r7
	mov	r7,a
	mov	dpl,r6
	mov	dph,r7
	mov	b,r5
	mov	a,_bp
	add	a,#0x0e
	mov	r0,a
	lcall	__gptrget
	mov	@r0,a
	mov	a,_bp
	add	a,#0x0e
	mov	r0,a
	mov	a,@r0
	add	a,#0xff - 0x15
	jnc	00119$
;	../../Common/modules/rf802_15_4.c:289: if(buf->src_sa.addr_type != ADDR_NONE)
	mov	a,#0x10
	add	a,r2
	mov	r6,a
	clr	a
	addc	a,r3
	mov	r7,a
	mov	ar5,r4
	mov	dpl,r6
	mov	dph,r7
	mov	b,r5
	lcall	__gptrget
	mov	r6,a
	clr	a
	cjne	r6,#0x00,00208$
	inc	a
00208$:
	jnz	00119$
;	../../Common/modules/rf802_15_4.c:293: packet_check=update_neighbour_table(buf->src_sa.addr_type, buf->src_sa.address,buf->options.rf_lqi, header_analyze_result.sqn);
	mov	a,_bp
	add	a,#0x07
	add	a,#0x02
	mov	r0,a
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r0
	mov	@r1,a
	mov	a,#0x10
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	mov	a,#0x01
	add	a,r2
	mov	r7,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar5,r4
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x0e
	mov	r0,a
	mov	a,@r0
	push	acc
	push	ar7
	push	ar6
	push	ar5
	mov	dpl,r2
	lcall	_update_neighbour_table
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,ar2
00119$:
;	../../Common/modules/rf802_15_4.c:307: if(rf_address_decoder_enable==0)
	mov	dptr,#_rf_address_decoder_enable
	movx	a,@dptr
	mov	r2,a
	jz	00211$
	ljmp	00130$
00211$:
;	../../Common/modules/rf802_15_4.c:311: if((header_analyze_result.f_type==FC_COMMAND_FRAME) &&  (buf->buf[ind] == CMD_ASSOC_RESPONSE))
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	ar2,@r0
	cjne	r2,#0x03,00121$
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x2C
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	cjne	r5,#0x02,00121$
;	../../Common/modules/rf802_15_4.c:312: destination_match = mac_dest_check(buf, 1);
	mov	a,#0x01
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_mac_dest_check
	mov	r2,dpl
	dec	sp
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,ar2
	sjmp	00131$
00121$:
;	../../Common/modules/rf802_15_4.c:314: destination_match = mac_dest_check(buf, 0);
	clr	a
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_dest_check
	mov	r3,dpl
	dec	sp
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,ar3
	sjmp	00131$
00130$:
;	../../Common/modules/rf802_15_4.c:318: if((rf_802_15_4_PIB.mode != AD_HOC_MODE && (rf_802_15_4_PIB.mac_options & MAC_ASSOC_CORD)) && rf_802_15_4_PIB.device_type==MAC_RFD_TYPE)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	movx	a,@dptr
	mov	r3,a
	jz	00125$
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	a,@dptr
	mov	r3,a
	jnb	acc.1,00125$
	mov	dptr,#(_rf_802_15_4_PIB + 0x0021)
	movx	a,@dptr
	jnz	00125$
;	../../Common/modules/rf802_15_4.c:320: destination_match = mac_rfd_src_check(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_rfd_src_check
	mov	r3,dpl
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,ar3
	sjmp	00131$
00125$:
;	../../Common/modules/rf802_15_4.c:324: destination_match=1;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x01
00131$:
;	../../Common/modules/rf802_15_4.c:328: buf->src_sa.port = 0;
	mov	r0,_bp
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	inc	r0
	mov	ar5,@r0
	mov	a,#0x10
	add	a,r3
	mov	r6,a
	clr	a
	addc	a,r4
	mov	r7,a
	mov	ar2,r5
	mov	a,#0x0B
	add	a,r6
	mov	r6,a
	clr	a
	addc	a,r7
	mov	r7,a
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:329: switch (header_analyze_result.f_type)
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,@r0
	mov	r2,a
	add	a,#0xff - 0x03
	jnc	00219$
	ljmp	00158$
00219$:
	mov	a,r2
	add	a,r2
	add	a,r2
	mov	dptr,#00220$
	jmp	@a+dptr
00220$:
	ljmp	00132$
	ljmp	00138$
	ljmp	00148$
	ljmp	00153$
;	../../Common/modules/rf802_15_4.c:331: case FC_BEACON_FRAME: /* beacon frame*/
00132$:
;	../../Common/modules/rf802_15_4.c:333: switch(rf_802_15_4_PIB.mode)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	movx	a,@dptr
	mov	r6,a
	jz	00222$
	sjmp	00134$
00222$:
;	../../Common/modules/rf802_15_4.c:336: stack_buffer_free(buf);
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:337: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:338: break;
;	../../Common/modules/rf802_15_4.c:340: default:
	sjmp	00137$
00134$:
;	../../Common/modules/rf802_15_4.c:392: if(buf)
	mov	a,r3
	orl	a,r4
	orl	a,r5
	jz	00137$
;	../../Common/modules/rf802_15_4.c:394: stack_buffer_free(buf);
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:395: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:399: }
00137$:
;	../../Common/modules/rf802_15_4.c:400: return pdTRUE;
	mov	dpl,#0x01
	ljmp	00163$
;	../../Common/modules/rf802_15_4.c:403: case FC_DATA_FRAME: /*data frame*/
00138$:
;	../../Common/modules/rf802_15_4.c:407: buf->buf_ptr = ind; 							/*cut header*/
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	a,#0x20
	add	a,r3
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	ar2,@r0
	mov	r6,#0x00
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r2
	lcall	__gptrput
	inc	dptr
	mov	a,r6
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:409: if(rf_802_15_4_PIB.mode == AD_HOC_MODE || rf_802_15_4_PIB.mac_options & MAC_ASSOC_CORD)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	movx	a,@dptr
	jz	00145$
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	a,@dptr
	mov	r6,a
	jb	acc.1,00225$
	ljmp	00161$
00225$:
00145$:
;	../../Common/modules/rf802_15_4.c:411: if (destination_match == 1)	/* Destinatiom filter */
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	cjne	@r0,#0x01,00142$
;	../../Common/modules/rf802_15_4.c:422: if(packet_check)	/* No duplicated packet */
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	jz	00142$
;	../../Common/modules/rf802_15_4.c:424: buf->from = MODULE_RF_802_15_4;
	mov	r0,_bp
	inc	r0
	mov	ar2,@r0
	inc	r0
	mov	ar3,@r0
	inc	r0
	mov	ar4,@r0
	mov	a,#0x1D
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x08
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:425: buf->to = MODULE_NONE;
	mov	a,#0x1E
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:426: stack_buffer_push(buf);
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_stack_buffer_push
;	../../Common/modules/rf802_15_4.c:427: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00142$:
;	../../Common/modules/rf802_15_4.c:430: if(buf)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00229$
	ljmp	00161$
00229$:
;	../../Common/modules/rf802_15_4.c:438: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:439: buf = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:442: break;
	ljmp	00161$
;	../../Common/modules/rf802_15_4.c:444: case FC_ACK_FRAME:		
00148$:
;	../../Common/modules/rf802_15_4.c:445: if(ack_flag ==TRUE)
	mov	dptr,#_ack_flag
	movx	a,@dptr
	mov	r6,a
	cjne	r6,#0x01,00152$
;	../../Common/modules/rf802_15_4.c:448: if(header_analyze_result.sqn == rf_802_15_4_PIB.last_tx_sqn)
	mov	a,_bp
	add	a,#0x07
	add	a,#0x02
	mov	r0,a
	mov	ar6,@r0
	mov	dptr,#(_rf_802_15_4_PIB + 0x001a)
	movx	a,@dptr
	mov	r7,a
	mov	a,r6
	cjne	a,ar7,00152$
;	../../Common/modules/rf802_15_4.c:450: ack_rx=1;
	mov	dptr,#_ack_rx
	mov	a,#0x01
	movx	@dptr,a
00152$:
;	../../Common/modules/rf802_15_4.c:453: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:454: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:455: break;
	ljmp	00161$
;	../../Common/modules/rf802_15_4.c:457: case FC_COMMAND_FRAME: /*command frame*/
00153$:
;	../../Common/modules/rf802_15_4.c:458: buf->buf_ptr = ind;
	mov	a,#0x20
	add	a,r3
	mov	r6,a
	clr	a
	addc	a,r4
	mov	r7,a
	mov	ar2,r5
	push	ar3
	push	ar4
	push	ar5
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	ar3,@r0
	mov	r4,#0x00
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	mov	a,r3
	lcall	__gptrput
	inc	dptr
	mov	a,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:459: if(destination_match)
	pop	ar5
	pop	ar4
	pop	ar3
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	jz	00155$
;	../../Common/modules/rf802_15_4.c:462: mac_command_frames_handle(buf , packet_check);
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	_mac_command_frames_handle
	dec	sp
;	../../Common/modules/rf802_15_4.c:463: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00155$:
;	../../Common/modules/rf802_15_4.c:465: if(buf)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jz	00161$
;	../../Common/modules/rf802_15_4.c:467: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:468: buf=0;	
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:470: break;
;	../../Common/modules/rf802_15_4.c:471: default:
	sjmp	00161$
00158$:
;	../../Common/modules/rf802_15_4.c:472: stack_buffer_free(buf);
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:473: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:475: }/*end of f-type*/
00161$:
;	../../Common/modules/rf802_15_4.c:477: return pdTRUE; 
	mov	dpl,#0x01
00163$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_check'
;------------------------------------------------------------
;buf                       Allocated to registers 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:480: portCHAR rf_802_15_4_check( buffer_t *buf )
;	-----------------------------------------
;	 function rf_802_15_4_check
;	-----------------------------------------
_rf_802_15_4_check:
;	../../Common/modules/rf802_15_4.c:487: return pdFALSE;  
	mov	dpl,#0x00
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'vmac_task'
;------------------------------------------------------------
;pvParameters              Allocated to registers 
;i                         Allocated to registers r3 
;tmp_8                     Allocated to registers r2 
;tmp                       Allocated to registers r5 
;buf                       Allocated to stack - offset 1
;ptr                       Allocated to stack - offset 4
;return_val                Allocated to registers r3 
;temp_mac                  Allocated to stack - offset 7
;sloc0                     Allocated to stack - offset 20
;sloc1                     Allocated to stack - offset 23
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:556: void vmac_task( void *pvParameters )
;	-----------------------------------------
;	 function vmac_task
;	-----------------------------------------
_vmac_task:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x19
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:559: buffer_t *buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:586: temp_mac.addr_type = ADDR_NONE;
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:587: while (temp_mac.addr_type == ADDR_NONE)
00101$:
	mov	a,@r0
	jnz	00103$
;	../../Common/modules/rf802_15_4.c:589: mac_get(&temp_mac);
	mov	a,_bp
	add	a,#0x07
	mov	r2,a
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	push	ar0
	lcall	_mac_get
;	../../Common/modules/rf802_15_4.c:590: vTaskDelay(200/portTICK_RATE_MS);
	mov	dptr,#0x00C8
	lcall	_vTaskDelay
	pop	ar0
	sjmp	00101$
00103$:
;	../../Common/modules/rf802_15_4.c:593: vTaskDelay(200/portTICK_RATE_MS);
	mov	dptr,#0x00C8
	lcall	_vTaskDelay
;	../../Common/modules/rf802_15_4.c:595: tmp_8= (rf_802_15_4_PIB.data_sqn % 15);
	mov	dptr,#(_rf_802_15_4_PIB + 0x0017)
	movx	a,@dptr
	mov	b,#0x0F
	div	ab
	mov	r2,b
;	../../Common/modules/rf802_15_4.c:596: for(i=0; i< tmp_8; i++)
	mov	r3,#0x00
00124$:
	clr	c
	mov	a,r3
	subb	a,r2
	jnc	00127$
;	../../Common/modules/rf802_15_4.c:598: tmp=mac_random_generate();
	push	ar2
	push	ar3
	lcall	_mac_random_generate
	pop	ar3
	pop	ar2
;	../../Common/modules/rf802_15_4.c:596: for(i=0; i< tmp_8; i++)
	inc	r3
	sjmp	00124$
00127$:
;	../../Common/modules/rf802_15_4.c:602: rf_802_15_4_ip_layer_address_mode_set(0);
	mov	dpl,#0x00
	lcall	_rf_802_15_4_ip_layer_address_mode_set
;	../../Common/modules/rf802_15_4.c:605: mac_handle_address_decoder(RF_DECODER_ON);	
	mov	dpl,#0x02
	lcall	_mac_handle_address_decoder
;	../../Common/modules/rf802_15_4.c:608: rf_rx_enable();
	lcall	_rf_rx_enable
00129$:
;	../../Common/modules/rf802_15_4.c:675: if (xQueueReceive(rf_802_15_4_queue, &(buf),1000 / portTICK_RATE_MS) == pdTRUE)	/* Waiting for message ques */
	mov	r3,_bp
	inc	r3
	mov	ar2,r3
	mov	r4,#0x00
	mov	r5,#0x40
	mov	dptr,#_rf_802_15_4_queue
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	mov	a,#0xE8
	push	acc
	mov	a,#0x03
	push	acc
	push	ar2
	push	ar4
	push	ar5
	mov	dpl,r6
	mov	dph,r7
	mov	b,r3
	lcall	_xQueueReceive
	mov	r3,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	cjne	r3,#0x01,00129$
;	../../Common/modules/rf802_15_4.c:677: switch (buf->options.handle_type)
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x14
	mov	r1,a
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	a,#0x26
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar3,@r0
	mov	a,#0x03
	add	a,r6
	mov	r6,a
	clr	a
	addc	a,r7
	mov	r7,a
	mov	dpl,r6
	mov	dph,r7
	mov	b,r3
	lcall	__gptrget
	mov	r3,a
	cjne	r3,#0x00,00152$
	ljmp	00113$
00152$:
	cjne	r3,#0x02,00153$
	sjmp	00154$
00153$:
	ljmp	00120$
00154$:
;	../../Common/modules/rf802_15_4.c:681: ptr = ( control_message_t*) buf->buf;
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	a,_bp
	add	a,#0x04
	mov	r1,a
	mov	a,#0x2C
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
;	../../Common/modules/rf802_15_4.c:682: ack_flag=FALSE;
	mov	dptr,#_ack_flag
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:683: switch(ptr->message.mac_control.message_id)
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r6,a
	cjne	r6,#0x07,00155$
	ljmp	00110$
00155$:
	cjne	r6,#0x09,00156$
	sjmp	00157$
00156$:
	ljmp	00111$
00157$:
;	../../Common/modules/rf802_15_4.c:1278: if(ptr->message.mac_control.message.set_req.pib_attribute == MAC_CURRENT_CHANNEL)
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar3,@r0
	mov	dpl,r6
	mov	dph,r7
	mov	b,r3
	lcall	__gptrget
	jnz	00107$
;	../../Common/modules/rf802_15_4.c:1280: tmp_8 = ptr->message.mac_control.message.set_req.atribute_value[0];
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x02
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	__gptrget
	mov	r3,a
	mov	ar2,r3
;	../../Common/modules/rf802_15_4.c:1281: mac_ctrl_message_builder(buf ,SET_CONFIRM ,  MAC_CURRENT_CHANNEL, tmp_8);
	push	ar2
	clr	a
	push	acc
	mov	a,#0x0A
	push	acc
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_ctrl_message_builder
	dec	sp
	dec	sp
	dec	sp
;	../../Common/modules/rf802_15_4.c:1282: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
00107$:
;	../../Common/modules/rf802_15_4.c:1284: if(buf)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00159$
	ljmp	00129$
00159$:
;	../../Common/modules/rf802_15_4.c:1286: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:1287: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1289: break;
	ljmp	00129$
;	../../Common/modules/rf802_15_4.c:1291: case GET_REQ:	/* Upper layer want know some MAC PIB values */
00110$:
;	../../Common/modules/rf802_15_4.c:1292: tmp_8 = ptr->message.mac_control.message.get_attribute_req;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	__gptrget
	mov	r3,a
	mov	ar2,r3
;	../../Common/modules/rf802_15_4.c:1294: mac_ctrl_message_builder(buf ,GET_CONFIRM ,  tmp_8, 0);
	clr	a
	push	acc
	push	ar2
	mov	a,#0x08
	push	acc
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_ctrl_message_builder
	dec	sp
	dec	sp
	dec	sp
;	../../Common/modules/rf802_15_4.c:1295: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1296: break;
	ljmp	00129$
;	../../Common/modules/rf802_15_4.c:1298: default:
00111$:
;	../../Common/modules/rf802_15_4.c:1299: stack_buffer_free(buf);
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:1300: buf = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1304: break;
	ljmp	00129$
;	../../Common/modules/rf802_15_4.c:1306: case HANDLE_TX:		/* Check TX_queue table */
00113$:
;	../../Common/modules/rf802_15_4.c:1307: ack_flag=FALSE;
	mov	dptr,#_ack_flag
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1308: tmp = buf->buf_ptr; 	
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	a,#0x20
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	inc	dptr
	lcall	__gptrget
	mov	ar5,r2
;	../../Common/modules/rf802_15_4.c:1310: ack_flag=rf_802_15_4_create_mac_frame(buf);
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	push	ar5
	lcall	_rf_802_15_4_create_mac_frame
	mov	a,dpl
	mov	dptr,#_ack_flag
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1311: return_val =rf_802_15_4_csma_ca(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_rf_802_15_4_csma_ca
	mov	r3,dpl
	pop	ar5
;	../../Common/modules/rf802_15_4.c:1312: if(return_val == MAC_NO_ACK)
	cjne	r3,#0x01,00160$
	sjmp	00161$
00160$:
	ljmp	00118$
00161$:
;	../../Common/modules/rf802_15_4.c:1314: ack_flag = FALSE;
	mov	dptr,#_ack_flag
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1316: buf->buf_ptr = tmp;
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x17
	mov	r1,a
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	a,#0x20
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar4,@r0
	mov	r6,#0x00
	mov	dpl,r7
	mov	dph,r2
	mov	b,r4
	mov	a,r5
	lcall	__gptrput
	inc	dptr
	mov	a,r6
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1317: buf->options.handle_type = HANDLE_BROKEN_LINK;
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	a,#0x26
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	a,#0x03
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	mov	a,#0x04
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1318: buf->from = MODULE_RF_802_15_4;
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	a,#0x1D
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	mov	a,#0x08
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1319: buf->dir = BUFFER_UP;
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	a,#0x1F
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1320: buf->to = MODULE_CIPV6;
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	a,#0x1E
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1321: stack_buffer_push(buf);
	mov	a,_bp
	add	a,#0x17
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_push
;	../../Common/modules/rf802_15_4.c:1322: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
	ljmp	00129$
00118$:
;	../../Common/modules/rf802_15_4.c:1327: else if(return_val == MAC_TX_SUCCESS || return_val == MAC_CCA_BUSY)
	mov	a,r3
	jz	00114$
	cjne	r3,#0x02,00163$
	sjmp	00164$
00163$:
	ljmp	00129$
00164$:
00114$:
;	../../Common/modules/rf802_15_4.c:1329: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:1330: buf = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1331: ack_flag = FALSE;
	mov	dptr,#_ack_flag
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1332: vTaskDelay(2); /* IFS period */
	mov	dptr,#0x0002
	lcall	_vTaskDelay
;	../../Common/modules/rf802_15_4.c:1427: break;
	ljmp	00129$
;	../../Common/modules/rf802_15_4.c:1448: default:
00120$:
;	../../Common/modules/rf802_15_4.c:1449: stack_buffer_free(buf);
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:1450: buf = 0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1452: }/* end of handle type */
	ljmp	00129$
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_header_analyze'
;------------------------------------------------------------
;response                  Allocated to stack - offset -5
;buf                       Allocated to stack - offset 1
;ind                       Allocated to stack - offset 4
;intra                     Allocated to stack - offset 5
;tmp_8                     Allocated to stack - offset 6
;tmp                       Allocated to registers r4 
;temp_length               Allocated to stack - offset 7
;fc                        Allocated to stack - offset 8
;i                         Allocated to stack - offset 10
;sloc0                     Allocated to stack - offset 11
;sloc1                     Allocated to stack - offset 12
;sloc2                     Allocated to stack - offset 15
;sloc3                     Allocated to stack - offset 19
;sloc4                     Allocated to stack - offset 18
;sloc5                     Allocated to stack - offset 21
;sloc6                     Allocated to stack - offset 24
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:1476: void mac_header_analyze(buffer_t *buf, rf_mac_header_analyze_t *response)
;	-----------------------------------------
;	 function mac_header_analyze
;	-----------------------------------------
_mac_header_analyze:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x1a
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:1478: uint8_t ind, intra=0, tmp_8=0, tmp,temp_length=0, fc[2], i;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,#0x00
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:1479: ind = buf->buf_ptr;
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x0c
	mov	r1,a
	mov	a,#0x20
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r3,a
	inc	dptr
	lcall	__gptrget
;	../../Common/modules/rf802_15_4.c:1480: fc[0] = buf->buf[ind++];					/* Read framecontrol field */
	mov	a,_bp
	add	a,#0x08
	mov	r0,a
	mov	r1,_bp
	inc	r1
	push	ar0
	mov	a,_bp
	add	a,#0x0f
	mov	r0,a
	mov	a,#0x2C
	add	a,@r1
	mov	@r0,a
	clr	a
	inc	r1
	addc	a,@r1
	inc	r0
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	pop	ar0
	mov	ar6,r3
	inc	r3
	mov	a,_bp
	add	a,#0x0f
	mov	r1,a
	mov	a,r6
	add	a,@r1
	mov	r6,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r7,a
	inc	r1
	mov	ar2,@r1
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	lcall	__gptrget
	mov	r6,a
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1481: fc[1] = buf->buf[ind++];
	inc	r0
	mov	ar2,r3
	inc	r3
	mov	a,_bp
	add	a,#0x0f
	mov	r1,a
	mov	a,r2
	add	a,@r1
	mov	r2,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r4,a
	inc	r1
	mov	ar5,@r1
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	lcall	__gptrget
	mov	@r1,a
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,@r1
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:1482: response->sqn = buf->buf[ind++];
	mov	a,_bp
	add	a,#0xfb
	mov	r1,a
	push	ar0
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	a,@r1
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,#0x02
	add	a,@r1
	mov	@r0,a
	clr	a
	inc	r1
	addc	a,@r1
	inc	r0
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	pop	ar0
	mov	ar7,r3
	inc	r3
	mov	a,_bp
	add	a,#0x0f
	mov	r1,a
	mov	a,r7
	add	a,@r1
	mov	r7,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r2,a
	inc	r1
	mov	ar4,@r1
	mov	dpl,r7
	mov	dph,r2
	mov	b,r4
	lcall	__gptrget
	mov	r7,a
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	dpl,@r1
	inc	r1
	mov	dph,@r1
	inc	r1
	mov	b,@r1
	mov	a,r7
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1483: response->f_type = (fc[0] &  FC_FRAME_TYPE_MASK); /* detect frametype */
	mov	a,#0x07
	anl	a,r6
	mov	r2,a
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	mov	dpl,@r1
	inc	r1
	mov	dph,@r1
	inc	r1
	mov	b,@r1
	mov	a,r2
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1484: response->ack_req = (fc[0] &  FC_ACK);
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	mov	a,#0x01
	add	a,@r1
	mov	r2,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r4,a
	inc	r1
	mov	ar5,@r1
	mov	a,#0x20
	anl	a,r6
	mov	r7,a
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1485: intra =(fc[0] &  FC_INTRA_PAN);
	mov	a,_bp
	add	a,#0x05
	mov	r1,a
	mov	a,#0x40
	anl	a,r6
	mov	@r1,a
;	../../Common/modules/rf802_15_4.c:1488: tmp=(fc[1] & FC_DST_MODE);
	mov	a,_bp
	add	a,#0x0b
	mov	r1,a
	mov	a,#0x0C
	anl	a,@r1
;	../../Common/modules/rf802_15_4.c:1489: if(tmp == FC_DST_ADDR_NONE)
	mov	r4,a
	jnz	00102$
;	../../Common/modules/rf802_15_4.c:1491: tmp_8=0;
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	mov	@r1,#0x00
;	../../Common/modules/rf802_15_4.c:1492: buf->dst_sa.addr_type = ADDR_NONE;
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r5,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r6,a
	inc	r1
	mov	ar7,@r1
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
00102$:
;	../../Common/modules/rf802_15_4.c:1494: if(tmp == FC_DST_64_BITS)
	cjne	r4,#0x0C,00104$
;	../../Common/modules/rf802_15_4.c:1496: tmp_8=8;
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	mov	@r1,#0x08
;	../../Common/modules/rf802_15_4.c:1497: buf->dst_sa.addr_type = ADDR_802_15_4_PAN_LONG;
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r5,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r6,a
	inc	r1
	mov	ar7,@r1
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x04
	lcall	__gptrput
00104$:
;	../../Common/modules/rf802_15_4.c:1499: if(tmp== FC_DST_16_BITS)
	cjne	r4,#0x08,00106$
;	../../Common/modules/rf802_15_4.c:1501: tmp_8=2;
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	mov	@r1,#0x02
;	../../Common/modules/rf802_15_4.c:1502: buf->dst_sa.addr_type = ADDR_802_15_4_PAN_SHORT;
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r5,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r6,a
	inc	r1
	mov	ar7,@r1
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	a,#0x03
	lcall	__gptrput
00106$:
;	../../Common/modules/rf802_15_4.c:1504: if(tmp_8)
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	mov	a,@r1
	jnz	00200$
	ljmp	00111$
00200$:
;	../../Common/modules/rf802_15_4.c:1507: for(i=0; i<2; i++)
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r5,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r6,a
	inc	r1
	mov	ar7,@r1
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	a,#0x01
	add	a,r5
	mov	@r1,a
	clr	a
	addc	a,r6
	inc	r1
	mov	@r1,a
	inc	r1
	mov	@r1,ar7
	mov	r1,_bp
	inc	r1
	push	ar0
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	a,#0x2C
	add	a,@r1
	mov	@r0,a
	clr	a
	inc	r1
	addc	a,@r1
	inc	r0
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	pop	ar0
	mov	ar4,r3
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	@r1,#0x00
00131$:
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	cjne	@r1,#0x02,00201$
00201$:
	jc	00202$
	ljmp	00134$
00202$:
;	../../Common/modules/rf802_15_4.c:1509: buf->dst_sa.address[tmp_8+i] = buf->buf[ind++];
	push	ar5
	push	ar6
	push	ar7
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	add	a,@r1
	mov	r5,a
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,r5
	add	a,@r1
	mov	@r0,a
	clr	a
	inc	r1
	addc	a,@r1
	inc	r0
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	pop	ar0
	mov	ar2,r4
	inc	r4
	mov	ar3,r4
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	mov	a,r2
	add	a,@r1
	mov	r2,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r6,a
	inc	r1
	mov	ar7,@r1
	mov	dpl,r2
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r2,a
	mov	a,_bp
	add	a,#0x18
	mov	r1,a
	mov	dpl,@r1
	inc	r1
	mov	dph,@r1
	inc	r1
	mov	b,@r1
	mov	a,r2
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1510: device_own_address.address[tmp_8+i] =rf_802_15_4_PIB.pan_id[i];
	mov	a,r5
	add	a,#(_device_own_address + 0x0001)
	mov	r5,a
	clr	a
	addc	a,#((_device_own_address + 0x0001) >> 8)
	mov	r2,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	dpl,r5
	mov	dph,r2
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1507: for(i=0; i<2; i++)
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	inc	@r1
	pop	ar7
	pop	ar6
	pop	ar5
	ljmp	00131$
00134$:
;	../../Common/modules/rf802_15_4.c:1512: for (i = 0; i < tmp_8 ; i++)
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	mov	a,#0x01
	add	a,r5
	mov	@r1,a
	clr	a
	addc	a,r6
	inc	r1
	mov	@r1,a
	inc	r1
	mov	@r1,ar7
	mov	r1,_bp
	inc	r1
	push	ar0
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,#0x2C
	add	a,@r1
	mov	@r0,a
	clr	a
	inc	r1
	addc	a,@r1
	inc	r0
	mov	@r0,a
	inc	r1
	inc	r0
	mov	a,@r1
	mov	@r0,a
	pop	ar0
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	clr	a
	cjne	@r1,#0x08,00203$
	inc	a
00203$:
	mov	r7,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	@r1,#0x00
00135$:
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	push	ar0
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	clr	c
	mov	a,@r1
	subb	a,@r0
	pop	ar0
	jc	00205$
	ljmp	00189$
00205$:
;	../../Common/modules/rf802_15_4.c:1514: buf->dst_sa.address[i] = buf->buf[ind++];
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	add	a,@r1
	push	acc
	clr	a
	inc	r1
	addc	a,@r1
	push	acc
	inc	r1
	mov	a,@r1
	push	acc
	mov	a,_bp
	add	a,#0x11
	mov	r1,a
	pop	acc
	mov	@r1,a
	dec	r1
	pop	acc
	mov	@r1,a
	dec	r1
	pop	acc
	mov	@r1,a
	pop	ar0
	mov	ar6,r4
	inc	r4
	mov	ar3,r4
	mov	a,_bp
	add	a,#0x18
	mov	r1,a
	mov	a,r6
	add	a,@r1
	mov	r6,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r2,a
	inc	r1
	mov	ar5,@r1
	mov	dpl,r6
	mov	dph,r2
	mov	b,r5
	lcall	__gptrget
	mov	r6,a
	mov	a,_bp
	add	a,#0x0f
	mov	r1,a
	mov	dpl,@r1
	inc	r1
	mov	dph,@r1
	inc	r1
	mov	b,@r1
	mov	a,r6
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1515: if(tmp_8==8)
	mov	a,r7
	jz	00108$
;	../../Common/modules/rf802_15_4.c:1516: device_own_address.address[i] = rf_802_15_4_PIB.rf_802_15_4_ext_addr[i];
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,#(_device_own_address + 0x0001)
	mov	r2,a
	clr	a
	addc	a,#((_device_own_address + 0x0001) >> 8)
	mov	r5,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,#_rf_802_15_4_PIB
	mov	dpl,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r6,a
	mov	dpl,r2
	mov	dph,r5
	movx	@dptr,a
	sjmp	00137$
00108$:
;	../../Common/modules/rf802_15_4.c:1518: device_own_address.address[i] = rf_802_15_4_PIB.rf_802_15_4_short_addr[i];
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,#(_device_own_address + 0x0001)
	mov	r2,a
	clr	a
	addc	a,#((_device_own_address + 0x0001) >> 8)
	mov	r5,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,#(_rf_802_15_4_PIB + 0x0008)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0008) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r6,a
	mov	dpl,r2
	mov	dph,r5
	movx	@dptr,a
00137$:
;	../../Common/modules/rf802_15_4.c:1512: for (i = 0; i < tmp_8 ; i++)
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	inc	@r1
	ljmp	00135$
00189$:
	mov	ar3,r4
;	../../Common/modules/rf802_15_4.c:1520: device_own_address.addr_type = buf->dst_sa.addr_type;
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r2,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r5,a
	inc	r1
	mov	ar6,@r1
	mov	dpl,r2
	mov	dph,r5
	mov	b,r6
	lcall	__gptrget
	mov	r2,a
	mov	dptr,#_device_own_address
	movx	@dptr,a
00111$:
;	../../Common/modules/rf802_15_4.c:1522: buf->dst_sa.port = 0;
	mov	r1,_bp
	inc	r1
	mov	a,#0x03
	add	a,@r1
	mov	r2,a
	clr	a
	inc	r1
	addc	a,@r1
	mov	r5,a
	inc	r1
	mov	ar6,@r1
	mov	a,#0x0B
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r5
	mov	r5,a
	mov	dpl,r2
	mov	dph,r5
	mov	b,r6
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1524: tmp=(fc[1] & FC_SRC_MODE);
	mov	ar2,@r0
	mov	a,#0xC0
	anl	a,r2
;	../../Common/modules/rf802_15_4.c:1526: if(tmp == FC_SRC_ADDR_NONE)
	mov	r4,a
	jnz	00113$
;	../../Common/modules/rf802_15_4.c:1528: tmp_8=0;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:1529: buf->src_sa.addr_type = ADDR_NONE;
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r5,a
	inc	r0
	mov	ar6,@r0
	mov	dpl,r2
	mov	dph,r5
	mov	b,r6
	clr	a
	lcall	__gptrput
00113$:
;	../../Common/modules/rf802_15_4.c:1531: if(tmp == FC_SRC_64_BITS)
	cjne	r4,#0xC0,00115$
;	../../Common/modules/rf802_15_4.c:1533: tmp_8=8;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,#0x08
;	../../Common/modules/rf802_15_4.c:1534: buf->src_sa.addr_type = ADDR_802_15_4_PAN_LONG;
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r5,a
	inc	r0
	mov	ar6,@r0
	mov	dpl,r2
	mov	dph,r5
	mov	b,r6
	mov	a,#0x04
	lcall	__gptrput
00115$:
;	../../Common/modules/rf802_15_4.c:1536: if(tmp == FC_SRC_16_BITS)
	cjne	r4,#0x80,00117$
;	../../Common/modules/rf802_15_4.c:1538: tmp_8=2;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,#0x02
;	../../Common/modules/rf802_15_4.c:1539: buf->src_sa.addr_type = ADDR_802_15_4_PAN_SHORT;
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r2
	mov	dph,r4
	mov	b,r5
	mov	a,#0x03
	lcall	__gptrput
00117$:
;	../../Common/modules/rf802_15_4.c:1542: if(tmp_8)
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	jnz	00212$
	ljmp	00130$
00212$:
;	../../Common/modules/rf802_15_4.c:1544: if(intra)
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	jnz	00213$
	ljmp	00185$
00213$:
;	../../Common/modules/rf802_15_4.c:1546: for (i = 0; i < tmp_8 ; i++)
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	a,#0x2C
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	ar6,r3
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x00
00139$:
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	clr	c
	mov	a,@r0
	subb	a,@r1
	jnc	00190$
;	../../Common/modules/rf802_15_4.c:1548: buf->src_sa.address[i] = buf->buf[ind++];
	push	ar2
	push	ar4
	push	ar5
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	push	acc
	clr	a
	inc	r0
	addc	a,@r0
	push	acc
	inc	r0
	mov	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x14
	mov	r0,a
	pop	acc
	mov	@r0,a
	dec	r0
	pop	acc
	mov	@r0,a
	dec	r0
	pop	acc
	mov	@r0,a
	mov	ar7,r6
	inc	r6
	mov	ar3,r6
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,r7
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r7
	mov	dph,r2
	mov	b,r4
	lcall	__gptrget
	mov	r7,a
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r7
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1546: for (i = 0; i < tmp_8 ; i++)
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	inc	@r0
	pop	ar5
	pop	ar4
	pop	ar2
	sjmp	00139$
00190$:
	mov	ar3,r6
;	../../Common/modules/rf802_15_4.c:1550: if(buf->dst_sa.addr_type == ADDR_802_15_4_PAN_LONG)
	push	ar2
	push	ar4
	push	ar5
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	lcall	__gptrget
	mov	r6,a
	clr	a
	cjne	r6,#0x04,00215$
	inc	a
00215$:
	pop	ar5
	pop	ar4
	pop	ar2
	jz	00122$
;	../../Common/modules/rf802_15_4.c:1551: temp_length=8;
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	@r0,#0x08
	sjmp	00123$
00122$:
;	../../Common/modules/rf802_15_4.c:1552: else if(buf->dst_sa.addr_type == ADDR_802_15_4_PAN_SHORT)
	cjne	r6,#0x03,00180$
;	../../Common/modules/rf802_15_4.c:1553: temp_length=2;
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	@r0,#0x02
;	../../Common/modules/rf802_15_4.c:1556: for(i=0; i<2;i++)
	sjmp	00123$
00180$:
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	r6,#0x00
00143$:
	cjne	r6,#0x02,00220$
00220$:
	jnc	00123$
;	../../Common/modules/rf802_15_4.c:1558: buf->src_sa.address[tmp_8+i] = rf_802_15_4_PIB.pan_id[i];
	push	ar2
	push	ar4
	push	ar5
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,r6
	add	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	pop	acc
	add	a,@r0
	mov	r7,a
	inc	r0
	clr	a
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar4,@r0
	mov	a,r6
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	dpl,r7
	mov	dph,r2
	mov	b,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1556: for(i=0; i<2;i++)
	inc	r6
	pop	ar5
	pop	ar4
	pop	ar2
	sjmp	00143$
00123$:
;	../../Common/modules/rf802_15_4.c:1561: if(temp_length)
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,@r0
	jnz	00222$
	ljmp	00130$
00222$:
;	../../Common/modules/rf802_15_4.c:1563: for(i=0; i<2;i++)
	push	ar3
	inc	r2
	cjne	r2,#0x00,00223$
	inc	r4
00223$:
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar3,@r0
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,#0x01
	add	a,r6
	mov	@r0,a
	clr	a
	addc	a,r7
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar3
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:1581: buf->buf_ptr = ind;
	pop	ar3
;	../../Common/modules/rf802_15_4.c:1563: for(i=0; i<2;i++)
00147$:
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	cjne	@r0,#0x02,00224$
00224$:
	jc	00225$
	ljmp	00130$
00225$:
;	../../Common/modules/rf802_15_4.c:1565: buf->src_sa.address[tmp_8+i] = buf->dst_sa.address[temp_length+i];
	push	ar3
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	pop	acc
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	pop	acc
	add	a,@r0
	mov	r3,a
	inc	r0
	clr	a
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r3
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r3,a
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1563: for(i=0; i<2;i++)
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	inc	@r0
	pop	ar3
;	../../Common/modules/rf802_15_4.c:1571: for (i = 0; i < 2 ; i++)
	sjmp	00147$
00185$:
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x15
	mov	r1,a
	mov	a,#0x2C
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	ar6,r3
	mov	r3,#0x00
00151$:
	cjne	r3,#0x02,00226$
00226$:
	jnc	00154$
;	../../Common/modules/rf802_15_4.c:1573: buf->src_sa.address[tmp_8+i] = buf->buf[ind++];
	push	ar2
	push	ar4
	push	ar5
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,r3
	add	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	pop	acc
	push	acc
	mov	a,_bp
	add	a,#0x12
	mov	r1,a
	pop	acc
	add	a,@r0
	mov	@r1,a
	inc	r0
	clr	a
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	ar7,r6
	inc	r6
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,r7
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r7
	mov	dph,r2
	mov	b,r4
	lcall	__gptrget
	mov	r7,a
	mov	a,_bp
	add	a,#0x12
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r7
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1571: for (i = 0; i < 2 ; i++)
	inc	r3
	pop	ar5
	pop	ar4
	pop	ar2
	sjmp	00151$
00154$:
;	../../Common/modules/rf802_15_4.c:1575: for (i = 0; i < tmp_8 ; i++)
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,#0x01
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x18
	mov	r1,a
	mov	a,#0x2C
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,ar6
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x00
00155$:
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,_bp
	add	a,#0x06
	mov	r1,a
	clr	c
	mov	a,@r0
	subb	a,@r1
	jnc	00194$
;	../../Common/modules/rf802_15_4.c:1577: buf->src_sa.address[i] = buf->buf[ind++];
	mov	a,_bp
	add	a,#0x15
	mov	r0,a
	mov	a,_bp
	add	a,#0x0a
	mov	r1,a
	mov	a,@r1
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	ar4,@r0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	mov	a,_bp
	add	a,#0x18
	mov	r0,a
	mov	a,r4
	add	a,@r0
	mov	r4,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r5,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r4
	mov	dph,r5
	mov	b,r2
	lcall	__gptrget
	mov	r4,a
	mov	dpl,r3
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1575: for (i = 0; i < tmp_8 ; i++)
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	inc	@r0
	sjmp	00155$
00194$:
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	ar3,@r0
00130$:
;	../../Common/modules/rf802_15_4.c:1581: buf->buf_ptr = ind;
	mov	r2,#0x00
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r3
	lcall	__gptrput
	inc	dptr
	mov	a,r2
	lcall	__gptrput
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_command_frames_handle'
;------------------------------------------------------------
;packet_check              Allocated to stack - offset -3
;buf                       Allocated to registers r2 r3 r4 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:1781: void mac_command_frames_handle(buffer_t *buf, uint8_t packet_check)
;	-----------------------------------------
;	 function mac_command_frames_handle
;	-----------------------------------------
_mac_command_frames_handle:
	push	_bp
	mov	_bp,sp
;	../../Common/modules/rf802_15_4.c:1784: stack_buffer_free(buf);
	lcall	_stack_buffer_free
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_csma_ca'
;------------------------------------------------------------
;buf                       Allocated to stack - offset 1
;j                         Allocated to registers r5 
;while_flag                Allocated to registers 
;timevalue                 Allocated to registers r7 
;re_tx                     Allocated to registers r6 
;temp_duration_mask        Allocated to registers r5 
;false                     Allocated to registers 
;slot_active               Allocated to registers 
;count                     Allocated to registers r4 
;ret_value                 Allocated to registers r5 
;tx_status                 Allocated to registers r5 
;sloc0                     Allocated to stack - offset 14
;sloc1                     Allocated to stack - offset 17
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:1800: csma_response_t rf_802_15_4_csma_ca(buffer_t *buf)
;	-----------------------------------------
;	 function rf_802_15_4_csma_ca
;	-----------------------------------------
_rf_802_15_4_csma_ca:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
;	../../Common/modules/rf802_15_4.c:1802: uint8_t j, while_flag, timevalue, re_tx, temp_duration_mask, false=0, slot_active=1, count=0;
	mov	r4,#0x00
;	../../Common/modules/rf802_15_4.c:1804: ack_rx=0;
	mov	dptr,#_ack_rx
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1807: be = rf_802_15_4_PIB.min_be;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0019)
	movx	a,@dptr
	mov	dptr,#_be
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1808: while(while_flag != 1)
	mov	r6,#0x00
00128$:
;	../../Common/modules/rf802_15_4.c:1810: timevalue = mac_random_generate();
	push	ar4
	push	ar4
	push	ar6
	lcall	_mac_random_generate
	mov	r7,dpl
	pop	ar6
	pop	ar4
;	../../Common/modules/rf802_15_4.c:1811: temp_duration_mask= ((2 << be) -1);
	mov	dptr,#_be
	movx	a,@dptr
	mov	r5,a
	mov	b,r5
	inc	b
	mov	a,#0x02
	sjmp	00155$
00153$:
	add	a,acc
00155$:
	djnz	b,00153$
	mov	r5,a
	dec	r5
;	../../Common/modules/rf802_15_4.c:1812: timevalue &= temp_duration_mask;
	mov	a,r5
	anl	ar7,a
;	../../Common/modules/rf802_15_4.c:1930: return MAC_CCA_BUSY;
	pop	ar4
;	../../Common/modules/rf802_15_4.c:1813: for(j=0; j<timevalue; j++)
	mov	r5,#0x00
00131$:
	clr	c
	mov	a,r5
	subb	a,r7
	jnc	00134$
;	../../Common/modules/rf802_15_4.c:1815: pause_us(320);
	mov	dptr,#0x0140
	push	ar4
	push	ar5
	push	ar6
	push	ar7
	lcall	_pause_us
	pop	ar7
	pop	ar6
	pop	ar5
	pop	ar4
;	../../Common/modules/rf802_15_4.c:1813: for(j=0; j<timevalue; j++)
	inc	r5
	sjmp	00131$
00134$:
;	../../Common/modules/rf802_15_4.c:1834: if(cap_active && slot_active)
	mov	dptr,#_cap_active
	movx	a,@dptr
	mov	r5,a
	jz	00128$
;	../../Common/modules/rf802_15_4.c:1836: ret_value = rf_cca_check(timevalue, slotted);
	push	ar4
	push	ar6
	mov	dptr,#_slotted
	movx	a,@dptr
	push	acc
	mov	dpl,r7
	lcall	_rf_cca_check
	mov	r5,dpl
	dec	sp
	pop	ar6
	pop	ar4
;	../../Common/modules/rf802_15_4.c:1837: if (ret_value == pdTRUE)
	cjne	r5,#0x01,00158$
	sjmp	00159$
00158$:
	ljmp	00123$
00159$:
;	../../Common/modules/rf802_15_4.c:1839: tx_status = rf_write(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	push	ar4
	push	ar6
	lcall	_rf_write
	mov	r5,dpl
	pop	ar6
	pop	ar4
;	../../Common/modules/rf802_15_4.c:1840: if(tx_status==pdTRUE)
	cjne	r5,#0x01,00160$
	sjmp	00161$
00160$:
	ljmp	00117$
00161$:
;	../../Common/modules/rf802_15_4.c:1842: if(ack_flag == TRUE)	/* ACK response case */
	mov	dptr,#_ack_flag
	movx	a,@dptr
	mov	r5,a
	cjne	r5,#0x01,00162$
	sjmp	00163$
00162$:
	ljmp	00111$
00163$:
;	../../Common/modules/rf802_15_4.c:1844: do
	mov	ar5,r4
00103$:
;	../../Common/modules/rf802_15_4.c:1846: vTaskDelay(2);
	mov	dptr,#0x0002
	push	ar5
	push	ar6
	lcall	_vTaskDelay
	pop	ar6
	pop	ar5
;	../../Common/modules/rf802_15_4.c:1847: if(ack_rx)
	mov	dptr,#_ack_rx
	movx	a,@dptr
	mov	r7,a
	jz	00104$
;	../../Common/modules/rf802_15_4.c:1850: ack_rx=0;
	mov	dptr,#_ack_rx
;	../../Common/modules/rf802_15_4.c:1851: ack_flag=FALSE;
	clr	a
	movx	@dptr,a
	mov	dptr,#_ack_flag
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1854: update_tables_ttl(buf->dst_sa.addr_type, buf->dst_sa.address);
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	a,#0x01
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	push	ar5
	push	ar6
	push	ar7
	mov	dpl,r2
	lcall	_update_tables_ttl
	dec	sp
	dec	sp
	dec	sp
;	../../Common/modules/rf802_15_4.c:1855: return MAC_TX_SUCCESS;
	mov	dpl,#0x00
	ljmp	00135$
00104$:
;	../../Common/modules/rf802_15_4.c:1857: }while ( !(count++ > 5));
	mov	ar2,r5
	inc	r5
	mov	ar4,r5
	mov	a,r2
	add	a,#0xff - 0x05
	jnc	00103$
;	../../Common/modules/rf802_15_4.c:1867: if(ack_rx==0)
	mov	a,r7
	jz	00166$
	ljmp	00128$
00166$:
;	../../Common/modules/rf802_15_4.c:1869: re_tx++;
	inc	r6
;	../../Common/modules/rf802_15_4.c:1870: be = rf_802_15_4_PIB.min_be;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0019)
	movx	a,@dptr
	mov	r2,a
	mov	dptr,#_be
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1871: if(re_tx > MAX_RE_TX)	/* Didn't get ACK */	
	mov	a,r6
	add	a,#0xff - 0x03
	jc	00167$
	ljmp	00128$
00167$:
;	../../Common/modules/rf802_15_4.c:1875: return MAC_NO_ACK;
	mov	dpl,#0x01
	sjmp	00135$
00111$:
;	../../Common/modules/rf802_15_4.c:1882: return MAC_TX_SUCCESS;
	mov	dpl,#0x00
	sjmp	00135$
00117$:
;	../../Common/modules/rf802_15_4.c:1887: if(be < rf_802_15_4_PIB.max_csma_backoffs)
	mov	dptr,#(_rf_802_15_4_PIB + 0x0018)
	movx	a,@dptr
	mov	r2,a
	mov	dptr,#_be
	movx	a,@dptr
	mov	r3,a
	clr	c
	subb	a,r2
	jnc	00114$
;	../../Common/modules/rf802_15_4.c:1889: be++;
	mov	dptr,#_be
	mov	a,r3
	inc	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1890: vTaskDelay(2);
	mov	dptr,#0x0002
	push	ar4
	push	ar6
	lcall	_vTaskDelay
	pop	ar6
	pop	ar4
	ljmp	00128$
00114$:
;	../../Common/modules/rf802_15_4.c:1895: return MAC_CCA_BUSY;
	mov	dpl,#0x02
	sjmp	00135$
00123$:
;	../../Common/modules/rf802_15_4.c:1901: if(be < rf_802_15_4_PIB.max_csma_backoffs)
	mov	dptr,#(_rf_802_15_4_PIB + 0x0018)
	movx	a,@dptr
	mov	r2,a
	mov	dptr,#_be
	movx	a,@dptr
	mov	r3,a
	clr	c
	subb	a,r2
	jnc	00120$
;	../../Common/modules/rf802_15_4.c:1903: be++;
	mov	dptr,#_be
	mov	a,r3
	inc	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:1904: vTaskDelay(2);
	mov	dptr,#0x0002
	push	ar4
	push	ar6
	lcall	_vTaskDelay
	pop	ar6
	pop	ar4
	ljmp	00128$
00120$:
;	../../Common/modules/rf802_15_4.c:1909: return MAC_CCA_BUSY;
	mov	dpl,#0x02
;	../../Common/modules/rf802_15_4.c:1930: return MAC_CCA_BUSY;
00135$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_create_mac_frame'
;------------------------------------------------------------
;buf                       Allocated to stack - offset 1
;i                         Allocated to stack - offset 4
;tmp_8                     Allocated to stack - offset 5
;ind                       Allocated to stack - offset 6
;fc                        Allocated to stack - offset 7
;address_length            Allocated to stack - offset 9
;intra                     Allocated to stack - offset 10
;ack                       Allocated to stack - offset 11
;header_size               Allocated to stack - offset 12
;sloc0                     Allocated to stack - offset 13
;sloc1                     Allocated to stack - offset 16
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:1941: uint8_t rf_802_15_4_create_mac_frame(buffer_t *buf)
;	-----------------------------------------
;	 function rf_802_15_4_create_mac_frame
;	-----------------------------------------
_rf_802_15_4_create_mac_frame:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x0f
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:1943: uint8_t i , tmp_8=0, ind=0,fc[2], address_length=0;
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,#0x00
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:1944: uint8_t intra=0,ack=FALSE;
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x00
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:1945: uint8_t header_size = 3; /* including Frame Control and sqn */
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	@r0,#0x03
;	../../Common/modules/rf802_15_4.c:1946: fc[0] = FC_DATA_FRAME;
	mov	a,_bp
	add	a,#0x07
;	../../Common/modules/rf802_15_4.c:1947: fc[1] = 0;
	mov	r0,a
	mov	@r0,#0x01
	inc	a
	mov	r1,a
	mov	@r1,#0x00
;	../../Common/modules/rf802_15_4.c:1949: if(buf->dst_sa.addr_type==ADDR_802_15_4_PAN_LONG)
	push	ar0
	mov	r0,_bp
	inc	r0
	push	ar1
	mov	a,_bp
	add	a,#0x0d
	mov	r1,a
	mov	a,#0x03
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	pop	ar1
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	pop	ar0
	cjne	r2,#0x04,00102$
;	../../Common/modules/rf802_15_4.c:1950: address_length=8;
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x08
	pop	ar0
00102$:
;	../../Common/modules/rf802_15_4.c:1951: if(buf->dst_sa.addr_type==ADDR_802_15_4_PAN_SHORT)
	cjne	r2,#0x03,00104$
;	../../Common/modules/rf802_15_4.c:1952: address_length=2;
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x02
	pop	ar0
00104$:
;	../../Common/modules/rf802_15_4.c:1953: if(address_length)
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,@r0
	pop	ar0
	jnz	00191$
	ljmp	00108$
00191$:
;	../../Common/modules/rf802_15_4.c:1955: tmp_8 = buf->dst_sa.addr_type;
	mov	ar7,r2
	push	ar0
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,ar7
;	../../Common/modules/rf802_15_4.c:1956: buf->dst_sa.addr_type = ADDR_BROADCAST;
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,#0x08
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1957: for( i=0; i<address_length ;i++)
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
;	../../Common/modules/rf802_15_4.c:2076: return ack;
;	../../Common/modules/rf802_15_4.c:1957: for( i=0; i<address_length ;i++)
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar6,@r0
	pop	ar0
	inc	r5
	cjne	r5,#0x00,00192$
	inc	r7
00192$:
00141$:
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	push	ar1
	mov	a,_bp
	add	a,#0x09
	mov	r1,a
	clr	c
	mov	a,@r0
	subb	a,@r1
	pop	ar1
	pop	ar0
	jnc	00108$
;	../../Common/modules/rf802_15_4.c:1959: if( buf->dst_sa.address[i] != 0xff)
	push	ar0
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	add	a,r5
	mov	r2,a
	clr	a
	addc	a,r7
	mov	r3,a
	mov	ar4,r6
	pop	ar0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	clr	a
	cjne	r2,#0xFF,00194$
	inc	a
00194$:
	pop	ar0
	jnz	00143$
;	../../Common/modules/rf802_15_4.c:1961: i=20;
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x14
	pop	ar0
;	../../Common/modules/rf802_15_4.c:1962: fc[0] |= FC_ACK;
	mov	ar2,@r0
	orl	ar2,#0x20
	mov	@r0,ar2
;	../../Common/modules/rf802_15_4.c:1963: ack=TRUE;
	push	ar0
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	@r0,#0x01
;	../../Common/modules/rf802_15_4.c:1964: buf->dst_sa.addr_type = tmp_8;
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	lcall	__gptrput
	pop	ar0
00143$:
;	../../Common/modules/rf802_15_4.c:1957: for( i=0; i<address_length ;i++)
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	pop	ar0
	ljmp	00141$
00108$:
;	../../Common/modules/rf802_15_4.c:1968: if(buf->dst_sa.addr_type == ADDR_BROADCAST)
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	pop	ar0
	cjne	r2,#0x08,00110$
;	../../Common/modules/rf802_15_4.c:1970: buf->dst_sa.addr_type = ADDR_802_15_4_PAN_SHORT;
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,#0x03
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1971: for (i = 0; i < 4; i++)
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	pop	ar0
	inc	r2
	cjne	r2,#0x00,00199$
	inc	r3
00199$:
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	@r0,#0x00
	pop	ar0
00145$:
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	cjne	@r0,#0x04,00200$
00200$:
	pop	ar0
	jnc	00110$
;	../../Common/modules/rf802_15_4.c:1973: buf->dst_sa.address[i]  = 0xff;
	push	ar0
	push	ar0
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,@r0
	add	a,r2
	mov	r6,a
	clr	a
	addc	a,r3
	mov	r7,a
	mov	ar5,r4
	mov	dpl,r6
	mov	dph,r7
	mov	b,r5
	mov	a,#0xFF
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1971: for (i = 0; i < 4; i++)
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	inc	@r0
	pop	ar0
	pop	ar0
	sjmp	00145$
00110$:
;	../../Common/modules/rf802_15_4.c:1978: if((buf->dst_sa.addr_type == ADDR_COORDINATOR || rf_802_15_4_PIB.device_type==MAC_RFD_TYPE) && (rf_802_15_4_PIB.mac_options & MAC_ASSOC_CORD))
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	pop	ar0
	cjne	r2,#0x09,00202$
	sjmp	00124$
00202$:
	mov	dptr,#(_rf_802_15_4_PIB + 0x0021)
	movx	a,@dptr
	jz	00203$
	ljmp	00121$
00203$:
00124$:
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	a,@dptr
	mov	r3,a
	jb	acc.1,00204$
	ljmp	00121$
00204$:
;	../../Common/modules/rf802_15_4.c:1980: if(rf_802_15_4_PIB.coord_addr_mode == ADDR_802_15_4_PAN_SHORT)
	mov	dptr,#(_rf_802_15_4_PIB + 0x000c)
	movx	a,@dptr
	mov	r3,a
	cjne	r3,#0x03,00112$
;	../../Common/modules/rf802_15_4.c:1982: address_length=2;
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x02
;	../../Common/modules/rf802_15_4.c:1983: fc[1] |= FC_DST_16_BITS;
	mov	ar4,@r1
	orl	ar4,#0x08
	mov	@r1,ar4
;	../../Common/modules/rf802_15_4.c:1984: header_size += 2;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	@r0,#0x05
	pop	ar0
	sjmp	00113$
00112$:
;	../../Common/modules/rf802_15_4.c:1988: address_length=8;
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	@r0,#0x08
;	../../Common/modules/rf802_15_4.c:1989: fc[1] |= FC_DST_64_BITS;
	mov	ar4,@r1
	orl	ar4,#0x0C
	mov	@r1,ar4
;	../../Common/modules/rf802_15_4.c:1990: header_size += 8;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	@r0,#0x0B
	pop	ar0
00113$:
;	../../Common/modules/rf802_15_4.c:1992: buf->dst_sa.addr_type = rf_802_15_4_PIB.coord_addr_mode;
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1993: for(i=0;i<address_length;i++)
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,#0x01
	add	a,r3
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	pop	ar0
	mov	r6,#0x00
00149$:
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	clr	c
	mov	a,r6
	subb	a,@r0
	pop	ar0
	jnc	00152$
;	../../Common/modules/rf802_15_4.c:1995: buf->dst_sa.address[i] = rf_802_15_4_PIB.coord_short_Addr[i];
	push	ar3
	push	ar4
	push	ar5
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,r6
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	pop	ar0
	mov	a,r6
	add	a,#(_rf_802_15_4_PIB + 0x0015)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0015) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	dpl,r7
	mov	dph,r3
	mov	b,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1993: for(i=0;i<address_length;i++)
	inc	r6
	pop	ar5
	pop	ar4
	pop	ar3
	sjmp	00149$
00152$:
;	../../Common/modules/rf802_15_4.c:1997: for(i=0;i<2;i++)
	push	ar0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,#0x01
	add	a,r3
	mov	@r0,a
	clr	a
	addc	a,r4
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar5
	pop	ar0
	mov	r2,#0x00
00153$:
	cjne	r2,#0x02,00208$
00208$:
	jnc	00156$
;	../../Common/modules/rf802_15_4.c:1999: buf->dst_sa.address[address_length+i] = rf_802_15_4_PIB.pan_id[i];
	push	ar0
	push	ar0
	mov	a,_bp
	add	a,#0x09
	mov	r0,a
	mov	a,r2
	add	a,@r0
	push	acc
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	pop	acc
	add	a,@r0
	mov	r7,a
	inc	r0
	clr	a
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar3,@r0
	pop	ar0
	mov	a,r2
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r4,a
	mov	dpl,r7
	mov	dph,r6
	mov	b,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:1997: for(i=0;i<2;i++)
	inc	r2
	pop	ar0
	sjmp	00153$
00156$:
;	../../Common/modules/rf802_15_4.c:2001: intra=1;
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x01
	pop	ar0
;	../../Common/modules/rf802_15_4.c:2002: fc[0] |= FC_INTRA_PAN;
	mov	ar3,@r0
	orl	ar3,#0x40
	mov	@r0,ar3
	ljmp	00122$
00121$:
;	../../Common/modules/rf802_15_4.c:2006: if(buf->dst_sa.addr_type==ADDR_802_15_4_PAN_LONG)
	cjne	r2,#0x04,00115$
;	../../Common/modules/rf802_15_4.c:2008: tmp_8=8;
	push	ar0
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,#0x08
;	../../Common/modules/rf802_15_4.c:2009: fc[1] |= FC_DST_64_BITS;
	mov	ar3,@r1
	orl	ar3,#0x0C
	mov	@r1,ar3
;	../../Common/modules/rf802_15_4.c:2010: header_size += 10;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	@r0,#0x0D
	pop	ar0
00115$:
;	../../Common/modules/rf802_15_4.c:2012: if(buf->dst_sa.addr_type==ADDR_802_15_4_PAN_SHORT)
	cjne	r2,#0x03,00117$
;	../../Common/modules/rf802_15_4.c:2014: tmp_8=2;
	push	ar0
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	@r0,#0x02
;	../../Common/modules/rf802_15_4.c:2015: fc[1] |= FC_DST_16_BITS;
	mov	ar2,@r1
	orl	ar2,#0x08
	mov	@r1,ar2
;	../../Common/modules/rf802_15_4.c:2016: header_size += 4;
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,@r0
	add	a,#0x04
	mov	@r0,a
	pop	ar0
00117$:
;	../../Common/modules/rf802_15_4.c:2019: if(memcmp(&buf->dst_sa.address[tmp_8],rf_802_15_4_PIB.pan_id,2 ) == 0 ) /* Compare PAN-IDs --> if match use intra-flag */
	push	ar0
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	pop	ar0
	inc	r2
	cjne	r2,#0x00,00214$
	inc	r3
00214$:
	push	ar0
	mov	a,_bp
	add	a,#0x05
	mov	r0,a
	mov	a,@r0
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	push	ar1
	mov	a,#0x02
	push	acc
	clr	a
	push	acc
	mov	a,#(_rf_802_15_4_PIB + 0x000a)
	push	acc
	mov	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	push	acc
	clr	a
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_memcmp
	mov	r2,dpl
	mov	r3,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	pop	ar1
	pop	ar0
	mov	a,r2
	orl	a,r3
	jnz	00122$
;	../../Common/modules/rf802_15_4.c:2021: intra=1;
	push	ar0
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	@r0,#0x01
	pop	ar0
;	../../Common/modules/rf802_15_4.c:2022: fc[0] |= FC_INTRA_PAN;
	mov	ar2,@r0
	orl	ar2,#0x40
	mov	@r0,ar2
;	../../Common/modules/rf802_15_4.c:2023: header_size -=2;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	dec	@r0
	dec	@r0
	pop	ar0
00122$:
;	../../Common/modules/rf802_15_4.c:2028: if(((rf_802_15_4_PIB.mac_options & MAC_ASSOC_CORD) || rf_802_15_4_PIB.mode==AD_HOC_MODE ) && rf_802_15_4_PIB.mac_options & MAC_SUPPORT_SHORT_ADDR)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	a,@dptr
	mov	r2,a
	jb	acc.1,00129$
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	movx	a,@dptr
	jnz	00126$
00129$:
	mov	a,r2
	jnb	acc.6,00126$
;	../../Common/modules/rf802_15_4.c:2030: fc[1] |= FC_SRC_16_BITS;
	mov	ar2,@r1
	orl	ar2,#0x80
	mov	@r1,ar2
;	../../Common/modules/rf802_15_4.c:2031: header_size +=4;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,@r0
	add	a,#0x04
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2032: buf->src_sa.addr_type = ADDR_802_15_4_PAN_SHORT;
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	pop	ar0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x03
	lcall	__gptrput
	sjmp	00127$
00126$:
;	../../Common/modules/rf802_15_4.c:2036: fc[1]  |= FC_SRC_64_BITS;
	mov	ar2,@r1
	orl	ar2,#0xC0
	mov	@r1,ar2
;	../../Common/modules/rf802_15_4.c:2037: header_size +=10;
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	a,#0x0A
	add	a,@r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2038: buf->src_sa.addr_type = ADDR_802_15_4_PAN_LONG;	
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	pop	ar0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x04
	lcall	__gptrput
00127$:
;	../../Common/modules/rf802_15_4.c:2042: if(stack_buffer_headroom( buf,(uint16_t)header_size)==pdFALSE)
	push	ar0
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	ar7,@r0
	mov	r2,#0x00
	pop	ar0
	push	ar0
	push	ar1
	push	ar7
	push	ar2
	push	ar0
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	pop	ar0
	lcall	_stack_buffer_headroom
	mov	r2,dpl
	dec	sp
	dec	sp
	pop	ar1
	pop	ar0
	mov	a,r2
	jnz	00131$
;	../../Common/modules/rf802_15_4.c:2044: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_free
;	../../Common/modules/rf802_15_4.c:2045: return pdTRUE;
	mov	dpl,#0x01
	ljmp	00157$
00131$:
;	../../Common/modules/rf802_15_4.c:2049: buf->buf_ptr -= header_size;
	push	ar0
	mov	r0,_bp
	inc	r0
	mov	a,#0x20
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	lcall	__gptrget
	mov	@r0,a
	inc	dptr
	lcall	__gptrget
	inc	r0
	mov	@r0,a
	mov	a,_bp
	add	a,#0x0c
	mov	r0,a
	mov	ar7,@r0
	mov	r5,#0x00
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,@r0
	clr	c
	subb	a,r7
	mov	r7,a
	inc	r0
	mov	a,@r0
	subb	a,r5
	mov	r5,a
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,r7
	lcall	__gptrput
	inc	dptr
	mov	a,r5
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2050: ind = buf-> buf_ptr;
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,ar7
;	../../Common/modules/rf802_15_4.c:2051: buf->buf[ind++] = fc[0]; 	/* FCF*/
	mov	r0,_bp
	inc	r0
	mov	a,#0x2C
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	inc	@r0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,r5
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	pop	ar0
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r5
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2052: buf->buf[ind++] = fc[1];
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	inc	@r0
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	a,r5
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	mov	ar5,@r1
	mov	a,_bp
	add	a,#0x0d
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r5
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2054: buf->buf[ind++] = rf_802_15_4_PIB.data_sqn;		/*packet sequence number*/
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	ar5,@r0
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	inc	@r0
	mov	a,r5
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	mov	dptr,#(_rf_802_15_4_PIB + 0x0017)
	movx	a,@dptr
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2055: mac_sqn_update(1);
	mov	dpl,#0x01
	lcall	_mac_sqn_update
;	../../Common/modules/rf802_15_4.c:2058: ind=stack_insert_address_to_buffer(buf, ind, buf->dst_sa.addr_type, buf->dst_sa.address);
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	a,#0x01
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	push	ar5
	push	ar6
	push	ar7
	push	ar2
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_insert_address_to_buffer
	mov	r2,dpl
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	@r0,ar2
;	../../Common/modules/rf802_15_4.c:2060: if(buf->src_sa.addr_type == ADDR_802_15_4_PAN_LONG)
	mov	r0,_bp
	inc	r0
	mov	a,#0x10
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r2,a
	cjne	r2,#0x04,00139$
;	../../Common/modules/rf802_15_4.c:2062: if(intra == 0) ind=mac_add_address(buf, ind, 1, 1);
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	jnz	00133$
	mov	a,#0x01
	push	acc
	mov	a,#0x01
	push	acc
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_add_address
	dec	sp
	dec	sp
	dec	sp
	sjmp	00140$
00133$:
;	../../Common/modules/rf802_15_4.c:2063: else ind=mac_add_address(buf, ind, 1, 0);
	clr	a
	push	acc
	mov	a,#0x01
	push	acc
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_add_address
	dec	sp
	dec	sp
	dec	sp
	sjmp	00140$
00139$:
;	../../Common/modules/rf802_15_4.c:2067: if(intra == 0)
	mov	a,_bp
	add	a,#0x0a
	mov	r0,a
	mov	a,@r0
	jnz	00136$
;	../../Common/modules/rf802_15_4.c:2069: ind=mac_add_address(buf, ind, 2, 1);
	mov	a,#0x01
	push	acc
	mov	a,#0x02
	push	acc
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_add_address
	dec	sp
	dec	sp
	dec	sp
	sjmp	00140$
00136$:
;	../../Common/modules/rf802_15_4.c:2073: ind=mac_add_address(buf, ind, 2, 0);
	clr	a
	push	acc
	mov	a,#0x02
	push	acc
	mov	a,_bp
	add	a,#0x06
	mov	r0,a
	mov	a,@r0
	push	acc
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_mac_add_address
	dec	sp
	dec	sp
	dec	sp
00140$:
;	../../Common/modules/rf802_15_4.c:2076: return ack;
	mov	a,_bp
	add	a,#0x0b
	mov	r0,a
	mov	dpl,@r0
00157$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_store_address_to_ram'
;------------------------------------------------------------
;address                   Allocated to stack - offset 1
;i                         Allocated to registers r4 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2083: void rf_802_15_4_store_address_to_ram(void)
;	-----------------------------------------
;	 function rf_802_15_4_store_address_to_ram
;	-----------------------------------------
_rf_802_15_4_store_address_to_ram:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x0d
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:2088: for(i=0; i<2;i++)
	mov	r2,_bp
	inc	r2
	mov	a,r2
	inc	a
	mov	r3,a
	mov	r4,#0x00
00101$:
	cjne	r4,#0x02,00131$
00131$:
	jnc	00104$
;	../../Common/modules/rf802_15_4.c:2090: address.address[i]= rf_802_15_4_PIB.rf_802_15_4_short_addr[i];
	mov	a,r4
	add	a,r3
	mov	r0,a
	mov	a,r4
	add	a,#(_rf_802_15_4_PIB + 0x0008)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0008) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r5,a
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2088: for(i=0; i<2;i++)
	inc	r4
	sjmp	00101$
00104$:
;	../../Common/modules/rf802_15_4.c:2092: for(i=0; i<2;i++)
	inc	r2
	mov	r3,#0x00
00105$:
	cjne	r3,#0x02,00133$
00133$:
	jnc	00108$
;	../../Common/modules/rf802_15_4.c:2094: address.address[2+i]= rf_802_15_4_PIB.pan_id[i];
	mov	a,#0x02
	add	a,r3
	add	a,r2
	mov	r0,a
	mov	a,r3
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r4,a
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2092: for(i=0; i<2;i++)
	inc	r3
	sjmp	00105$
00108$:
;	../../Common/modules/rf802_15_4.c:2096: address.addr_type = ADDR_802_15_4_PAN_SHORT;
	mov	a,_bp
	inc	a
	mov	r0,a
	mov	@r0,#0x03
;	../../Common/modules/rf802_15_4.c:2097: rf_set_address(&address);
	mov	r2,_bp
	inc	r2
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_rf_set_address
;	../../Common/modules/rf802_15_4.c:2098: for(i=0; i<8;i++)
	mov	r2,_bp
	inc	r2
	mov	a,r2
	inc	a
	mov	r3,a
	mov	r4,#0x00
00109$:
	cjne	r4,#0x08,00135$
00135$:
	jnc	00112$
;	../../Common/modules/rf802_15_4.c:2100: address.address[i] = rf_802_15_4_PIB.rf_802_15_4_ext_addr[i];
	mov	a,r4
	add	a,r3
	mov	r0,a
	mov	a,r4
	add	a,#_rf_802_15_4_PIB
	mov	dpl,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r5,a
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2098: for(i=0; i<8;i++)
	inc	r4
	sjmp	00109$
00112$:
;	../../Common/modules/rf802_15_4.c:2102: for(i=0; i<2;i++)
	inc	r2
	mov	r3,#0x00
00113$:
	cjne	r3,#0x02,00137$
00137$:
	jnc	00116$
;	../../Common/modules/rf802_15_4.c:2104: address.address[8+i]= rf_802_15_4_PIB.pan_id[i];
	mov	a,#0x08
	add	a,r3
	add	a,r2
	mov	r0,a
	mov	a,r3
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r4,a
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2102: for(i=0; i<2;i++)
	inc	r3
	sjmp	00113$
00116$:
;	../../Common/modules/rf802_15_4.c:2106: address.addr_type = ADDR_802_15_4_PAN_LONG;
	mov	a,_bp
	inc	a
	mov	r0,a
	mov	@r0,#0x04
;	../../Common/modules/rf802_15_4.c:2107: rf_set_address(&address);
	mov	r2,_bp
	inc	r2
	mov	r3,#0x00
	mov	r4,#0x40
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_rf_set_address
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_pib_reset'
;------------------------------------------------------------
;i                         Allocated to registers r2 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2117: void rf_802_15_4_pib_reset(void)
;	-----------------------------------------
;	 function rf_802_15_4_pib_reset
;	-----------------------------------------
_rf_802_15_4_pib_reset:
;	../../Common/modules/rf802_15_4.c:2120: slotted=0;
	mov	dptr,#_slotted
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2121: cap_active=1;
	mov	dptr,#_cap_active
	mov	a,#0x01
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2131: rf_802_15_4_PIB.device_type=MAC_RFD_TYPE;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0021)
;	../../Common/modules/rf802_15_4.c:2134: rf_802_15_4_PIB.mac_options=0;	/* GTS/ASSOC, not permit, ASSOC_PAN_CORD,BATT_LIFE-EXT false... */
;	../../Common/modules/rf802_15_4.c:2138: rf_802_15_4_PIB.mac_options |=  MAC_AUTO_REQ;
	clr	a
	movx	@dptr,a
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	@dptr,a
	movx	a,@dptr
	mov	r2,a
	orl	ar2,#0x80
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	mov	a,r2
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2139: rf_802_15_4_PIB.max_csma_backoffs = 5;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0018)
	mov	a,#0x05
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2140: rf_802_15_4_PIB.min_be = 2;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0019)
	mov	a,#0x02
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2141: rf_802_15_4_PIB.state = AD_HOC;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001b)
	mov	a,#0x03
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2142: rf_802_15_4_PIB.mode = AD_HOC_MODE;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2143: rf_802_15_4_PIB.transaction_persistence_time = 5; /* time when coordiantor delete strored packet, when no one want them 75 seconds */
	mov	dptr,#(_rf_802_15_4_PIB + 0x0023)
	mov	a,#0x05
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2145: rf_802_15_4_PIB.logical_channel = CC2420_DEFAULT_CHANNEL;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001d)
	mov	a,#0x0B
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2146: rf_802_15_4_PIB.last_tx_sqn = 0;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001a)
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2147: rf_802_15_4_PIB.beacon_order = 15;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001f)
	mov	a,#0x0F
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2148: rf_802_15_4_PIB.superframe_order = 15;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0020)
	mov	a,#0x0F
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2150: for(i=0; i < 8 ;i++)
	mov	r2,#0x00
00101$:
	cjne	r2,#0x08,00117$
00117$:
	jnc	00104$
;	../../Common/modules/rf802_15_4.c:2152: rf_802_15_4_PIB.coord_ext_addr[i] = 0x00;
	mov	a,r2
	add	a,#(_rf_802_15_4_PIB + 0x000d)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000d) >> 8)
	mov	dph,a
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2150: for(i=0; i < 8 ;i++)
	inc	r2
	sjmp	00101$
00104$:
;	../../Common/modules/rf802_15_4.c:2155: for(i=0; i < 2 ;i++)
	mov	r2,#0x00
00105$:
	cjne	r2,#0x02,00119$
00119$:
	jnc	00109$
;	../../Common/modules/rf802_15_4.c:2157: rf_802_15_4_PIB.rf_802_15_4_short_addr[i]= 0xff;
	mov	a,r2
	add	a,#(_rf_802_15_4_PIB + 0x0008)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0008) >> 8)
	mov	dph,a
	mov	a,#0xFF
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2158: rf_802_15_4_PIB.pan_id[i]= 0xff;
	mov	a,r2
	add	a,#(_rf_802_15_4_PIB + 0x000a)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000a) >> 8)
	mov	dph,a
	mov	a,#0xFF
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2159: rf_802_15_4_PIB.coord_short_Addr[i]=0x00;
	mov	a,r2
	add	a,#(_rf_802_15_4_PIB + 0x0015)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0015) >> 8)
	mov	dph,a
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2155: for(i=0; i < 2 ;i++)
	inc	r2
	sjmp	00105$
00109$:
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'rf_802_15_4_ip_layer_address_mode_set'
;------------------------------------------------------------
;support_short_addr        Allocated to stack - offset 1
;i                         Allocated to stack - offset 2
;ptr                       Allocated to registers r2 r6 r7 
;tmp_buffer                Allocated to stack - offset 3
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2170: void rf_802_15_4_ip_layer_address_mode_set(uint8_t support_short_addr)
;	-----------------------------------------
;	 function rf_802_15_4_ip_layer_address_mode_set
;	-----------------------------------------
_rf_802_15_4_ip_layer_address_mode_set:
	push	_bp
	mov	_bp,sp
	push	dpl
	mov	a,sp
	add	a,#0x05
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:2174: buffer_t *tmp_buffer = stack_buffer_get(20);
	mov	dptr,#0x0014
	lcall	_stack_buffer_get
	mov	r3,dpl
	mov	r4,dph
	mov	r5,b
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	@r0,ar3
	inc	r0
	mov	@r0,ar4
	inc	r0
	mov	@r0,ar5
;	../../Common/modules/rf802_15_4.c:2175: if(tmp_buffer)
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00124$
	ljmp	00114$
00124$:
;	../../Common/modules/rf802_15_4.c:2177: tmp_buffer->buf_ptr=0;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x20
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2178: tmp_buffer->buf_end=0;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x22
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r2
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2179: ptr = ( control_message_t*) tmp_buffer->buf;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x2C
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
;	../../Common/modules/rf802_15_4.c:2180: ptr->message.ip_control.message_id = IP_ADDRESS__MODE_SETUP;
	mov	dpl,r2
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2182: if(support_short_addr)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	jz	00121$
;	../../Common/modules/rf802_15_4.c:2184: for(i=0; i<2;i++)
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	@r0,#0x00
00106$:
	mov	r0,_bp
	inc	r0
	inc	r0
	cjne	@r0,#0x02,00126$
00126$:
	jnc	00109$
;	../../Common/modules/rf802_15_4.c:2186: ptr->message.ip_control.message.address_setup.address[i] = rf_802_15_4_PIB.rf_802_15_4_short_addr[i];
	mov	a,#0x01
	add	a,r2
	mov	r4,a
	clr	a
	addc	a,r6
	mov	r5,a
	mov	ar3,r7
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	a,@r0
	add	a,r4
	mov	r4,a
	clr	a
	addc	a,r5
	mov	r5,a
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	a,@r0
	add	a,#(_rf_802_15_4_PIB + 0x0008)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0008) >> 8)
	mov	dph,a
	push	ar2
	push	ar6
	push	ar7
	movx	a,@dptr
	mov	dpl,r4
	mov	dph,r5
	mov	b,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2184: for(i=0; i<2;i++)
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	@r0
	pop	ar7
	pop	ar6
	pop	ar2
	sjmp	00106$
00109$:
;	../../Common/modules/rf802_15_4.c:2188: ptr->message.ip_control.message.address_setup.use_short_address = 1;
	mov	a,#0x01
	add	a,r2
	mov	r3,a
	clr	a
	addc	a,r6
	mov	r4,a
	mov	ar5,r7
	mov	a,#0x08
	add	a,r3
	mov	r3,a
	clr	a
	addc	a,r4
	mov	r4,a
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2192: for(i=0; i<8;i++)
	sjmp	00103$
00121$:
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	@r0,#0x00
00110$:
	mov	r0,_bp
	inc	r0
	inc	r0
	cjne	@r0,#0x08,00128$
00128$:
	jnc	00113$
;	../../Common/modules/rf802_15_4.c:2194: ptr->message.ip_control.message.address_setup.address[i] = rf_802_15_4_PIB.rf_802_15_4_ext_addr[i];
	mov	a,#0x01
	add	a,r2
	mov	r4,a
	clr	a
	addc	a,r6
	mov	r5,a
	mov	ar3,r7
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	a,@r0
	add	a,r4
	mov	r4,a
	clr	a
	addc	a,r5
	mov	r5,a
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	a,@r0
	add	a,#_rf_802_15_4_PIB
	mov	dpl,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	dph,a
	push	ar2
	push	ar6
	push	ar7
	movx	a,@dptr
	mov	dpl,r4
	mov	dph,r5
	mov	b,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2192: for(i=0; i<8;i++)
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	@r0
	pop	ar7
	pop	ar6
	pop	ar2
	sjmp	00110$
00113$:
;	../../Common/modules/rf802_15_4.c:2196: ptr->message.ip_control.message.address_setup.use_short_address = 0;
	inc	r2
	cjne	r2,#0x00,00130$
	inc	r6
00130$:
	mov	a,#0x08
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dpl,r2
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
00103$:
;	../../Common/modules/rf802_15_4.c:2198: tmp_buffer->options.type = BUFFER_CONTROL;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x26
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2199: tmp_buffer->to 	= MODULE_CIPV6; 
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2200: tmp_buffer->from 	= MODULE_RF_802_15_4;
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	a,#0x1D
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x08
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2201: stack_buffer_push(tmp_buffer);
	mov	r0,_bp
	inc	r0
	inc	r0
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_push
;	../../Common/modules/rf802_15_4.c:2202: tmp_buffer=0;
00114$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_sqn_update'
;------------------------------------------------------------
;sqn_data                  Allocated to registers r2 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2213: void mac_sqn_update(uint8_t sqn_data)
;	-----------------------------------------
;	 function mac_sqn_update
;	-----------------------------------------
_mac_sqn_update:
;	../../Common/modules/rf802_15_4.c:2215: if(sqn_data)
	mov	a,dpl
	mov	r2,a
	jz	00108$
;	../../Common/modules/rf802_15_4.c:2217: rf_802_15_4_PIB.last_tx_sqn = rf_802_15_4_PIB.data_sqn;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0017)
	movx	a,@dptr
	mov	r2,a
	mov	dptr,#(_rf_802_15_4_PIB + 0x001a)
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2218: if(rf_802_15_4_PIB.data_sqn == 0xff)
	cjne	r2,#0xFF,00102$
;	../../Common/modules/rf802_15_4.c:2219: rf_802_15_4_PIB.data_sqn=0;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0017)
	clr	a
	movx	@dptr,a
	ret
00102$:
;	../../Common/modules/rf802_15_4.c:2221: rf_802_15_4_PIB.data_sqn++;
	inc	r2
	mov	dptr,#(_rf_802_15_4_PIB + 0x0017)
	mov	a,r2
	movx	@dptr,a
	ret
00108$:
;	../../Common/modules/rf802_15_4.c:2225: if(rf_802_15_4_PIB.beacon_sqn == 0xff)
	mov	dptr,#(_rf_802_15_4_PIB + 0x0022)
	movx	a,@dptr
	mov	r2,a
	cjne	r2,#0xFF,00105$
;	../../Common/modules/rf802_15_4.c:2226: rf_802_15_4_PIB.beacon_sqn=0;
	mov	dptr,#(_rf_802_15_4_PIB + 0x0022)
	clr	a
	movx	@dptr,a
	ret
00105$:
;	../../Common/modules/rf802_15_4.c:2228: rf_802_15_4_PIB.beacon_sqn++;
	inc	r2
	mov	dptr,#(_rf_802_15_4_PIB + 0x0022)
	mov	a,r2
	movx	@dptr,a
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_set_mac_pib_parameter'
;------------------------------------------------------------
;type                      Allocated to stack - offset -3
;pointer                   Allocated to stack - offset 1
;i                         Allocated to registers r4 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2240: void mac_set_mac_pib_parameter(uint8_t *pointer, mac_pib_enum_t type)
;	-----------------------------------------
;	 function mac_set_mac_pib_parameter
;	-----------------------------------------
_mac_set_mac_pib_parameter:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
;	../../Common/modules/rf802_15_4.c:2243: if(type==MAC_SHORT_ADDRESS)	
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x06,00109$
;	../../Common/modules/rf802_15_4.c:2245: rf_802_15_4_PIB.rf_802_15_4_short_addr[0]= pointer[0];
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	dptr,#(_rf_802_15_4_PIB + 0x0008)
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2246: rf_802_15_4_PIB.rf_802_15_4_short_addr[1]= pointer[1];
	mov	r0,_bp
	inc	r0
	mov	a,#0x01
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	dptr,#(_rf_802_15_4_PIB + 0x0009)
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2247: rf_802_15_4_store_address_to_ram();
	lcall	_rf_802_15_4_store_address_to_ram
	sjmp	00115$
00109$:
;	../../Common/modules/rf802_15_4.c:2249: else if(type==MAC_IEEE_ADDRESS)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x01,00103$
;	../../Common/modules/rf802_15_4.c:2251: for(i=0;i<8; i++)
	mov	r4,#0x00
00111$:
	cjne	r4,#0x08,00127$
00127$:
	jnc	00114$
;	../../Common/modules/rf802_15_4.c:2253: rf_802_15_4_PIB.rf_802_15_4_ext_addr[i]= pointer[i];
	mov	a,r4
	add	a,#_rf_802_15_4_PIB
	mov	r6,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	r7,a
	mov	r0,_bp
	inc	r0
	mov	a,r4
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar3,@r0
	mov	dpl,r5
	mov	dph,r2
	mov	b,r3
	lcall	__gptrget
	mov	r5,a
	mov	dpl,r6
	mov	dph,r7
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2251: for(i=0;i<8; i++)
	inc	r4
	sjmp	00111$
00114$:
;	../../Common/modules/rf802_15_4.c:2255: rf_802_15_4_store_address_to_ram();
	lcall	_rf_802_15_4_store_address_to_ram
;	../../Common/modules/rf802_15_4.c:2263: else if(RUNNING_MODE)
	sjmp	00115$
00103$:
;	../../Common/modules/rf802_15_4.c:2265: if( *pointer == BEACON_ENABLE_MODE)
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r2,a
	cjne	r2,#0x01,00115$
;	../../Common/modules/rf802_15_4.c:2267: rf_802_15_4_PIB.mode =  BEACON_ENABLE_MODE;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001c)
	mov	a,#0x01
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2268: rf_802_15_4_PIB.state = DISSCONNECT;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001b)
	mov	a,#0x01
	movx	@dptr,a
00115$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_handle_address_decoder'
;------------------------------------------------------------
;mode                      Allocated to registers r2 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2279: void mac_handle_address_decoder(rf_address_mode_t mode)
;	-----------------------------------------
;	 function mac_handle_address_decoder
;	-----------------------------------------
_mac_handle_address_decoder:
	mov	r2,dpl
;	../../Common/modules/rf802_15_4.c:2281: switch(mode)
	cjne	r2,#0x00,00113$
	sjmp	00101$
00113$:
	cjne	r2,#0x01,00114$
	sjmp	00103$
00114$:
;	../../Common/modules/rf802_15_4.c:2283: case RF_DECODER_NONE:
	cjne	r2,#0x02,00107$
	sjmp	00103$
00101$:
;	../../Common/modules/rf802_15_4.c:2284: rf_address_decoder_mode(mode);
	mov	dpl,r2
	lcall	_rf_address_decoder_mode
;	../../Common/modules/rf802_15_4.c:2285: rf_address_decoder_enable=0;
	mov	dptr,#_rf_address_decoder_enable
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2286: break;
;	../../Common/modules/rf802_15_4.c:2289: case RF_DECODER_ON:
	ret
00103$:
;	../../Common/modules/rf802_15_4.c:2290: if(rf_address_decoder_mode(mode) == pdTRUE)
	mov	dpl,r2
	lcall	_rf_address_decoder_mode
	mov	r2,dpl
	cjne	r2,#0x01,00107$
;	../../Common/modules/rf802_15_4.c:2292: rf_802_15_4_store_address_to_ram();
	lcall	_rf_802_15_4_store_address_to_ram
;	../../Common/modules/rf802_15_4.c:2293: rf_address_decoder_enable=1;
	mov	dptr,#_rf_address_decoder_enable
	mov	a,#0x01
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2297: }
00107$:
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_ctrl_message_builder'
;------------------------------------------------------------
;message_id                Allocated to stack - offset -3
;temp                      Allocated to stack - offset -4
;value                     Allocated to stack - offset -5
;buf                       Allocated to stack - offset 1
;i                         Allocated to registers r6 
;tmp                       Allocated to registers r6 
;ctrl_ptr                  Allocated to registers r5 r6 r7 
;sloc0                     Allocated to stack - offset 4
;sloc1                     Allocated to stack - offset 7
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2309: void mac_ctrl_message_builder(buffer_t *buf , mac_control_id_t message_id ,  uint8_t temp, uint8_t value)
;	-----------------------------------------
;	 function mac_ctrl_message_builder
;	-----------------------------------------
_mac_ctrl_message_builder:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
	mov	a,sp
	add	a,#0x09
	mov	sp,a
;	../../Common/modules/rf802_15_4.c:2313: buf->buf_ptr=0;
	mov	r0,_bp
	inc	r0
	mov	a,#0x20
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2314: buf->buf_end=0;
	mov	r0,_bp
	inc	r0
	mov	a,#0x22
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	clr	a
	lcall	__gptrput
	inc	dptr
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2315: ctrl_ptr = ( control_message_t*) buf->buf;
	mov	r0,_bp
	inc	r0
	mov	a,#0x2C
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
;	../../Common/modules/rf802_15_4.c:2316: ctrl_ptr->message.mac_control.message_id = message_id;
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,@r0
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2317: switch(message_id)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	clr	a
	cjne	@r0,#0x08,00139$
	inc	a
00139$:
	mov	r2,a
	jnz	00101$
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x0A,00142$
	ljmp	00109$
00142$:
	ljmp	00113$
;	../../Common/modules/rf802_15_4.c:2348: case GET_CONFIRM:
00101$:
;	../../Common/modules/rf802_15_4.c:2349: ctrl_ptr->message.mac_control.message.get_confirm.status=1;
	push	ar2
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x01
	add	a,r5
	mov	@r0,a
	clr	a
	addc	a,r6
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar7
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2350: ctrl_ptr->message.mac_control.message.get_confirm.pib_attribute = temp;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x01
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar2,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r2
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2351: if(temp == MAC_CURRENT_CHANNEL)
	pop	ar2
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	jnz	00107$
;	../../Common/modules/rf802_15_4.c:2353: ctrl_ptr->message.mac_control.message.get_confirm.atribute_value[0] = rf_802_15_4_PIB.logical_channel;
	push	ar2
	mov	a,#0x03
	add	a,r5
	mov	r3,a
	clr	a
	addc	a,r6
	mov	r4,a
	mov	ar2,r7
	mov	ar5,r2
	mov	dptr,#(_rf_802_15_4_PIB + 0x001d)
	movx	a,@dptr
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	lcall	__gptrput
	pop	ar2
	ljmp	00114$
00107$:
;	../../Common/modules/rf802_15_4.c:2355: else if(temp == MAC_IEEE_ADDRESS && buf)
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	cjne	@r0,#0x01,00103$
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jz	00103$
;	../../Common/modules/rf802_15_4.c:2357: for(i=0; i< 8 ;i++)
	mov	r6,#0x00
00121$:
	cjne	r6,#0x08,00147$
00147$:
	jc	00148$
	ljmp	00114$
00148$:
;	../../Common/modules/rf802_15_4.c:2359: ctrl_ptr->message.mac_control.message.get_confirm.atribute_value[i] = rf_802_15_4_PIB.rf_802_15_4_ext_addr[i];
	push	ar2
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x02
	add	a,@r0
	mov	r4,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r2,a
	inc	r0
	mov	ar3,@r0
	mov	a,r6
	add	a,r4
	mov	r4,a
	clr	a
	addc	a,r2
	mov	r5,a
	mov	a,r6
	add	a,#_rf_802_15_4_PIB
	mov	dpl,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	dpl,r4
	mov	dph,r5
	mov	b,r3
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2357: for(i=0; i< 8 ;i++)
	inc	r6
	pop	ar2
	sjmp	00121$
00103$:
;	../../Common/modules/rf802_15_4.c:2362: else ctrl_ptr->message.mac_control.message.get_confirm.status=0;
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2363: break;
	ljmp	00114$
;	../../Common/modules/rf802_15_4.c:2365: case SET_CONFIRM:
00109$:
;	../../Common/modules/rf802_15_4.c:2366: ctrl_ptr->message.mac_control.message.set_confirm.pib_attribute = temp;
	push	ar2
	mov	a,#0x01
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r4,a
	mov	ar3,r7
	mov	a,#0x01
	add	a,r5
	mov	r6,a
	clr	a
	addc	a,r4
	mov	r7,a
	mov	ar2,r3
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	mov	a,@r0
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2367: if(rf_channel_set(value))
	mov	a,_bp
	add	a,#0xfb
	mov	r0,a
	mov	dpl,@r0
	push	ar2
	push	ar3
	push	ar4
	push	ar5
	lcall	_rf_channel_set
	mov	a,dpl
	pop	ar5
	pop	ar4
	pop	ar3
	pop	ar2
	pop	ar2
	jz	00111$
;	../../Common/modules/rf802_15_4.c:2369: rf_802_15_4_PIB.logical_channel = value;
	mov	dptr,#(_rf_802_15_4_PIB + 0x001d)
	mov	a,_bp
	add	a,#0xfb
	mov	r0,a
	mov	a,@r0
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2370: pause_us(50);
	mov	dptr,#0x0032
	push	ar2
	push	ar3
	push	ar4
	push	ar5
	lcall	_pause_us
	pop	ar5
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/modules/rf802_15_4.c:2371: ctrl_ptr->message.mac_control.message.set_confirm.status=1;
	mov	dpl,r5
	mov	dph,r4
	mov	b,r3
	mov	a,#0x01
	lcall	__gptrput
	sjmp	00114$
00111$:
;	../../Common/modules/rf802_15_4.c:2373: else ctrl_ptr->message.mac_control.message.set_confirm.status=0;
	mov	dpl,r5
	mov	dph,r4
	mov	b,r3
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2374: break;
;	../../Common/modules/rf802_15_4.c:2380: default:
	sjmp	00114$
00113$:
;	../../Common/modules/rf802_15_4.c:2381: stack_buffer_free(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	push	ar2
	lcall	_stack_buffer_free
	pop	ar2
;	../../Common/modules/rf802_15_4.c:2382: buf=0;
	mov	r0,_bp
	inc	r0
	clr	a
	mov	@r0,a
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,a
;	../../Common/modules/rf802_15_4.c:2384: }
00114$:
;	../../Common/modules/rf802_15_4.c:2385: if(buf)
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	inc	r0
	orl	a,@r0
	inc	r0
	orl	a,@r0
	jnz	00150$
	ljmp	00125$
00150$:
;	../../Common/modules/rf802_15_4.c:2387: buf->options.type = BUFFER_CONTROL;
	mov	r0,_bp
	inc	r0
	mov	a,#0x26
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar5,@r0
	mov	dpl,r3
	mov	dph,r4
	mov	b,r5
	mov	a,#0x01
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2388: if(message_id != GET_CONFIRM && message_id != SET_CONFIRM)
	mov	a,r2
	jnz	00116$
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	cjne	@r0,#0x0A,00152$
	sjmp	00116$
00152$:
;	../../Common/modules/rf802_15_4.c:2390: buf->to 	= MODULE_NWK_MANAGER;
	mov	r0,_bp
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x07
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2391: buf->from 	= MODULE_RF_802_15_4;
	mov	r0,_bp
	inc	r0
	mov	a,#0x1D
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	mov	a,#0x08
	lcall	__gptrput
	sjmp	00117$
00116$:
;	../../Common/modules/rf802_15_4.c:2395: tmp = buf->to;
	mov	r0,_bp
	inc	r0
	mov	a,#0x1E
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r5,a
	mov	ar6,r5
;	../../Common/modules/rf802_15_4.c:2396: buf->to = buf->from;
	mov	r0,_bp
	inc	r0
	mov	a,_bp
	add	a,#0x07
	mov	r1,a
	mov	a,#0x1D
	add	a,@r0
	mov	@r1,a
	clr	a
	inc	r0
	addc	a,@r0
	inc	r1
	mov	@r1,a
	inc	r0
	inc	r1
	mov	a,@r0
	mov	@r1,a
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	__gptrget
	mov	r5,a
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2397: buf->from = tmp;
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r6
	lcall	__gptrput
00117$:
;	../../Common/modules/rf802_15_4.c:2399: buf->dir    = BUFFER_UP; 
	mov	r0,_bp
	inc	r0
	mov	a,#0x1F
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	clr	a
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2400: stack_buffer_push(buf);
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	lcall	_stack_buffer_push
;	../../Common/modules/rf802_15_4.c:2401: buf=0;
00125$:
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_random_generate'
;------------------------------------------------------------
;rand                      Allocated to registers r2 
;seed                      Allocated with name '_mac_random_generate_seed_1_1'
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2417: uint8_t mac_random_generate(void) {
;	-----------------------------------------
;	 function mac_random_generate
;	-----------------------------------------
_mac_random_generate:
;	../../Common/modules/rf802_15_4.c:2420: if((((seed << 1) ^ seed) & 0x08) != 0)
	mov	dptr,#_mac_random_generate_seed_1_1
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	mov	ar4,r2
	xch	a,r4
	add	a,acc
	xch	a,r4
	rlc	a
	mov	r5,a
	mov	a,r4
	xrl	ar2,a
	mov	a,r5
	xrl	ar3,a
	anl	ar2,#0x08
	mov	r3,#0x00
	cjne	r2,#0x00,00107$
	cjne	r3,#0x00,00107$
	sjmp	00102$
00107$:
;	../../Common/modules/rf802_15_4.c:2421: seed = (seed << 1) | 1;
	mov	dptr,#_mac_random_generate_seed_1_1
	mov	a,#0x01
	orl	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
	sjmp	00103$
00102$:
;	../../Common/modules/rf802_15_4.c:2423: seed <<= 1;
	mov	dptr,#_mac_random_generate_seed_1_1
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
00103$:
;	../../Common/modules/rf802_15_4.c:2424: seed &= 0x0f;
	mov	dptr,#_mac_random_generate_seed_1_1
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	dptr,#_mac_random_generate_seed_1_1
	mov	a,#0x0F
	anl	a,r2
	movx	@dptr,a
	inc	dptr
	clr	a
	movx	@dptr,a
;	../../Common/modules/rf802_15_4.c:2425: rand =(rand_table[seed]);
	mov	dptr,#_mac_random_generate_seed_1_1
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	mov	a,r2
	add	a,#_rand_table
	mov	dpl,a
	mov	a,r3
	addc	a,#(_rand_table >> 8)
	mov	dph,a
	clr	a
	movc	a,@a+dptr
;	../../Common/modules/rf802_15_4.c:2426: return rand;
	mov	dpl,a
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_add_address'
;------------------------------------------------------------
;ind                       Allocated to stack - offset -3
;type                      Allocated to stack - offset -4
;pan_id                    Allocated to stack - offset -5
;buf                       Allocated to registers r2 r3 r4 
;i                         Allocated to registers r7 
;sloc0                     Allocated to stack - offset 1
;sloc1                     Allocated to stack - offset 4
;sloc2                     Allocated to stack - offset 7
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2434: uint8_t mac_add_address(buffer_t *buf, uint8_t ind, uint8_t type, uint8_t pan_id)
;	-----------------------------------------
;	 function mac_add_address
;	-----------------------------------------
_mac_add_address:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x09
	mov	sp,a
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/modules/rf802_15_4.c:2437: if(pan_id)
	mov	a,_bp
	add	a,#0xfb
	mov	r0,a
	mov	a,@r0
	jz	00102$
;	../../Common/modules/rf802_15_4.c:2439: buf->buf[ind++] = rf_802_15_4_PIB.pan_id[0];
	mov	a,#0x2C
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	push	ar2
	push	ar3
	push	ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	r0,_bp
	inc	r0
	mov	a,r2
	add	a,r5
	mov	@r0,a
	clr	a
	addc	a,r6
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar7
	mov	dptr,#(_rf_802_15_4_PIB + 0x000a)
	movx	a,@dptr
	mov	r2,a
	mov	r0,_bp
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r2
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2440: buf->buf[ind++] = rf_802_15_4_PIB.pan_id[1];
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,r2
	inc	a
	mov	@r0,a
	mov	a,r2
	add	a,r5
	mov	r5,a
	clr	a
	addc	a,r6
	mov	r6,a
	mov	dptr,#(_rf_802_15_4_PIB + 0x000b)
	movx	a,@dptr
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2461: return ind;
	pop	ar4
	pop	ar3
	pop	ar2
;	../../Common/modules/rf802_15_4.c:2440: buf->buf[ind++] = rf_802_15_4_PIB.pan_id[1];
00102$:
;	../../Common/modules/rf802_15_4.c:2443: if(type==1)
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	cjne	@r0,#0x01,00106$
;	../../Common/modules/rf802_15_4.c:2445: for(i=0; i < 8 ; i++)
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,#0x2C
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar2,@r0
	mov	r7,#0x00
00108$:
	cjne	r7,#0x08,00130$
00130$:
	jc	00131$
	ljmp	00125$
00131$:
;	../../Common/modules/rf802_15_4.c:2447: buf->buf[ind++] = rf_802_15_4_PIB.rf_802_15_4_ext_addr[i];
	mov	ar6,r2
	inc	r2
	mov	a,_bp
	add	a,#0x04
	mov	r0,a
	mov	a,r6
	add	a,@r0
	mov	r3,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r4,a
	inc	r0
	mov	ar6,@r0
	mov	a,r7
	add	a,#_rf_802_15_4_PIB
	mov	dpl,a
	clr	a
	addc	a,#(_rf_802_15_4_PIB >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r5,a
	mov	dpl,r3
	mov	dph,r4
	mov	b,r6
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2445: for(i=0; i < 8 ; i++)
	inc	r7
	sjmp	00108$
00106$:
;	../../Common/modules/rf802_15_4.c:2450: else if(type==2)
	mov	a,_bp
	add	a,#0xfc
	mov	r0,a
	cjne	@r0,#0x02,00107$
;	../../Common/modules/rf802_15_4.c:2452: for(i=0; i < 2 ; i++)
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,#0x2C
	add	a,r2
	mov	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	mov	@r0,a
	inc	r0
	mov	@r0,ar4
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	ar5,@r0
	mov	r4,#0x00
00112$:
	cjne	r4,#0x02,00134$
00134$:
	jnc	00126$
;	../../Common/modules/rf802_15_4.c:2454: buf->buf[ind++] = rf_802_15_4_PIB.rf_802_15_4_short_addr[i];
	mov	ar7,r5
	inc	r5
	mov	a,_bp
	add	a,#0x07
	mov	r0,a
	mov	a,r7
	add	a,@r0
	mov	r7,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar2,@r0
	mov	a,r4
	add	a,#(_rf_802_15_4_PIB + 0x0008)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0008) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r3,a
	mov	dpl,r7
	mov	dph,r6
	mov	b,r2
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2452: for(i=0; i < 2 ; i++)
	inc	r4
	sjmp	00112$
00125$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	@r0,ar2
;	../../Common/modules/rf802_15_4.c:2461: return ind;
;	../../Common/modules/rf802_15_4.c:2452: for(i=0; i < 2 ; i++)
	sjmp	00107$
00126$:
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	@r0,ar5
00107$:
;	../../Common/modules/rf802_15_4.c:2461: return ind;
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	dpl,@r0
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'get_coord_address'
;------------------------------------------------------------
;address                   Allocated to registers r2 r3 r4 
;i                         Allocated to stack - offset 1
;tmp_8                     Allocated to registers r6 
;sloc0                     Allocated to stack - offset 2
;sloc1                     Allocated to stack - offset 9
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2916: portCHAR get_coord_address(sockaddr_t *address)
;	-----------------------------------------
;	 function get_coord_address
;	-----------------------------------------
_get_coord_address:
	push	_bp
	mov	a,sp
	mov	_bp,a
	add	a,#0x04
	mov	sp,a
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/modules/rf802_15_4.c:2918: if(rf_802_15_4_PIB.mac_options & MAC_ASSOC_CORD)
	mov	dptr,#(_rf_802_15_4_PIB + 0x001e)
	movx	a,@dptr
	mov	r5,a
	jb	acc.1,00121$
	ljmp	00108$
00121$:
;	../../Common/modules/rf802_15_4.c:2921: address->addr_type = rf_802_15_4_PIB.coord_addr_mode;
	mov	dptr,#(_rf_802_15_4_PIB + 0x000c)
	movx	a,@dptr
	mov	r5,a
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrput
;	../../Common/modules/rf802_15_4.c:2922: if(rf_802_15_4_PIB.coord_addr_mode == ADDR_802_15_4_PAN_SHORT) tmp_8=2;
	cjne	r5,#0x03,00102$
	mov	r6,#0x02
	sjmp	00119$
00102$:
;	../../Common/modules/rf802_15_4.c:2923: else tmp_8=8;
	mov	r6,#0x08
;	../../Common/modules/rf802_15_4.c:2924: for(i=0; i < tmp_8 ; i++)
00119$:
	clr	a
	cjne	r5,#0x04,00124$
	inc	a
00124$:
	mov	r7,a
	inc	r2
	cjne	r2,#0x00,00126$
	inc	r3
00126$:
	mov	r0,_bp
	inc	r0
	mov	@r0,#0x00
00109$:
	mov	r0,_bp
	inc	r0
	clr	c
	mov	a,@r0
	subb	a,r6
	jnc	00108$
;	../../Common/modules/rf802_15_4.c:2926: if(rf_802_15_4_PIB.coord_addr_mode == ADDR_802_15_4_PAN_LONG)
	mov	a,r7
	jz	00105$
;	../../Common/modules/rf802_15_4.c:2927: address->address[i] = rf_802_15_4_PIB.coord_ext_addr[i];
	push	ar7
	mov	r0,_bp
	inc	r0
	mov	r1,_bp
	inc	r1
	inc	r1
	mov	a,@r0
	add	a,r2
	mov	@r1,a
	clr	a
	addc	a,r3
	inc	r1
	mov	@r1,a
	inc	r1
	mov	@r1,ar4
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	add	a,#(_rf_802_15_4_PIB + 0x000d)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x000d) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r5,a
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r5
	lcall	__gptrput
	pop	ar7
	sjmp	00111$
00105$:
;	../../Common/modules/rf802_15_4.c:2929: address->address[i] = rf_802_15_4_PIB.coord_short_Addr[i];
	mov	r0,_bp
	inc	r0
	mov	r1,_bp
	inc	r1
	inc	r1
	mov	a,@r0
	add	a,r2
	mov	@r1,a
	clr	a
	addc	a,r3
	inc	r1
	mov	@r1,a
	inc	r1
	mov	@r1,ar4
	mov	r0,_bp
	inc	r0
	mov	a,@r0
	add	a,#(_rf_802_15_4_PIB + 0x0015)
	mov	dpl,a
	clr	a
	addc	a,#((_rf_802_15_4_PIB + 0x0015) >> 8)
	mov	dph,a
	movx	a,@dptr
	mov	r5,a
	mov	r0,_bp
	inc	r0
	inc	r0
	mov	dpl,@r0
	inc	r0
	mov	dph,@r0
	inc	r0
	mov	b,@r0
	mov	a,r5
	lcall	__gptrput
00111$:
;	../../Common/modules/rf802_15_4.c:2924: for(i=0; i < tmp_8 ; i++)
	mov	r0,_bp
	inc	r0
	inc	@r0
	ljmp	00109$
00108$:
;	../../Common/modules/rf802_15_4.c:2932: return pdFALSE;
	mov	dpl,#0x00
	mov	sp,_bp
	pop	_bp
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_rfd_src_check'
;------------------------------------------------------------
;buf                       Allocated to registers r2 r3 r4 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2944: uint8_t mac_rfd_src_check(buffer_t *buf)
;	-----------------------------------------
;	 function mac_rfd_src_check
;	-----------------------------------------
_mac_rfd_src_check:
	mov	r2,dpl
	mov	r3,dph
	mov	r4,b
;	../../Common/modules/rf802_15_4.c:2946: if(buf->src_sa.addr_type==ADDR_802_15_4_PAN_SHORT)
	mov	a,#0x10
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	cjne	r5,#0x03,00106$
;	../../Common/modules/rf802_15_4.c:2948: if(memcmp(buf->src_sa.address, rf_802_15_4_PIB.coord_short_Addr, 2) == 0) return 1;
	mov	a,#0x10
	add	a,r2
	mov	r5,a
	clr	a
	addc	a,r3
	mov	r6,a
	mov	ar7,r4
	inc	r5
	cjne	r5,#0x00,00115$
	inc	r6
00115$:
	mov	a,#0x02
	push	acc
	clr	a
	push	acc
	mov	a,#(_rf_802_15_4_PIB + 0x0015)
	push	acc
	mov	a,#((_rf_802_15_4_PIB + 0x0015) >> 8)
	push	acc
	clr	a
	push	acc
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_memcmp
	mov	r5,dpl
	mov	r6,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r5
	orl	a,r6
	jnz	00107$
	mov	dpl,#0x01
	ret
00106$:
;	../../Common/modules/rf802_15_4.c:2952: if(memcmp(buf->src_sa.address, rf_802_15_4_PIB.coord_ext_addr, 8) == 0) return 1;
	mov	a,#0x10
	add	a,r2
	mov	r2,a
	clr	a
	addc	a,r3
	mov	r3,a
	inc	r2
	cjne	r2,#0x00,00117$
	inc	r3
00117$:
	mov	a,#0x08
	push	acc
	clr	a
	push	acc
	mov	a,#(_rf_802_15_4_PIB + 0x000d)
	push	acc
	mov	a,#((_rf_802_15_4_PIB + 0x000d) >> 8)
	push	acc
	clr	a
	push	acc
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	_memcmp
	mov	r2,dpl
	mov	r3,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r2
	orl	a,r3
	jnz	00107$
	mov	dpl,#0x01
;	../../Common/modules/rf802_15_4.c:2954: return 0;
	ret
00107$:
	mov	dpl,#0x00
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'mac_dest_check'
;------------------------------------------------------------
;flag                      Allocated to stack - offset -3
;buf                       Allocated to stack - offset 1
;from_cord                 Allocated to registers 
;------------------------------------------------------------
;	../../Common/modules/rf802_15_4.c:2969: uint8_t mac_dest_check(buffer_t *buf, uint8_t flag)
;	-----------------------------------------
;	 function mac_dest_check
;	-----------------------------------------
_mac_dest_check:
	push	_bp
	mov	_bp,sp
	push	dpl
	push	dph
	push	b
;	../../Common/modules/rf802_15_4.c:2998: if(flag)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,@r0
	jz	00115$
;	../../Common/modules/rf802_15_4.c:3000: if( memcmp(buf->dst_sa.address,rf_802_15_4_PIB.rf_802_15_4_ext_addr, 8 ) == 0 ) return 1;
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	inc	r5
	cjne	r5,#0x00,00130$
	inc	r6
00130$:
	mov	a,#0x08
	push	acc
	clr	a
	push	acc
	mov	a,#_rf_802_15_4_PIB
	push	acc
	mov	a,#(_rf_802_15_4_PIB >> 8)
	push	acc
	clr	a
	push	acc
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	_memcmp
	mov	r5,dpl
	mov	r6,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r5
	orl	a,r6
	jz	00131$
	ljmp	00118$
00131$:
	mov	dpl,#0x01
	ljmp	00119$
00115$:
;	../../Common/modules/rf802_15_4.c:3005: if(device_own_address.addr_type == ADDR_802_15_4_PAN_SHORT)
	mov	dptr,#_device_own_address
	movx	a,@dptr
	mov	r5,a
	cjne	r5,#0x03,00132$
	sjmp	00133$
00132$:
	ljmp	00112$
00133$:
;	../../Common/modules/rf802_15_4.c:3007: if(memcmp(device_own_address.address, buf->dst_sa.address, 4) == 0) return 1;
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	inc	r5
	cjne	r5,#0x00,00134$
	inc	r6
00134$:
	mov	a,#0x04
	push	acc
	clr	a
	push	acc
	push	ar5
	push	ar6
	push	ar7
	mov	dptr,#(_device_own_address + 0x0001)
	mov	b,#0x00
	lcall	_memcmp
	mov	r5,dpl
	mov	r6,dph
	mov	a,sp
	add	a,#0xfb
	mov	sp,a
	mov	a,r5
	orl	a,r6
	jnz	00104$
	mov	dpl,#0x01
	ljmp	00119$
00104$:
;	../../Common/modules/rf802_15_4.c:3008: if(flag==0)
	mov	r0,_bp
	dec	r0
	dec	r0
	dec	r0
	mov	a,@r0
	jz	00136$
	ljmp	00118$
00136$:
;	../../Common/modules/rf802_15_4.c:3010: if(stack_check_broadcast(buf->dst_sa.address, buf->dst_sa.addr_type) == pdTRUE)
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r5,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r6,a
	inc	r0
	mov	ar7,@r0
	mov	dpl,r5
	mov	dph,r6
	mov	b,r7
	lcall	__gptrget
	mov	r5,a
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r6,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r7,a
	inc	r0
	mov	ar2,@r0
	inc	r6
	cjne	r6,#0x00,00137$
	inc	r7
00137$:
	push	ar5
	mov	dpl,r6
	mov	dph,r7
	mov	b,r2
	lcall	_stack_check_broadcast
	mov	r2,dpl
	dec	sp
	cjne	r2,#0x01,00118$
;	../../Common/modules/rf802_15_4.c:3011: return 1;
	mov	dpl,#0x01
	sjmp	00119$
00112$:
;	../../Common/modules/rf802_15_4.c:3016: if(stack_compare_address(&device_own_address, &buf->dst_sa) == pdTRUE) return 1;
	mov	r0,_bp
	inc	r0
	mov	a,#0x03
	add	a,@r0
	mov	r2,a
	clr	a
	inc	r0
	addc	a,@r0
	mov	r3,a
	inc	r0
	mov	ar4,@r0
	push	ar2
	push	ar3
	push	ar4
	mov	dptr,#_device_own_address
	mov	b,#0x00
	lcall	_stack_compare_address
	mov	r2,dpl
	dec	sp
	dec	sp
	dec	sp
	cjne	r2,#0x01,00118$
	mov	dpl,#0x01
	sjmp	00119$
00118$:
;	../../Common/modules/rf802_15_4.c:3021: return 0; /* NOT from coordinator or NOT for this device --> packet will be discard */
	mov	dpl,#0x00
00119$:
	mov	sp,_bp
	pop	_bp
	ret
	.area CSEG    (CODE)
	.area CONST   (CODE)
__str_0:
	.ascii "MAC"
	.db 0x00
_rand_table:
	.db #0x08
	.db #0x0B
	.db #0x03
	.db #0x06
	.db #0x10
	.db #0x0D
	.db #0x02
	.db #0x0A
	.db #0x04
	.db #0x0F
	.db #0x0E
	.db #0x05
	.db #0x0C
	.db #0x09
	.db #0x07
	.db #0x11
	.area XINIT   (CODE)
__xinit__cap_active:
	.db #0x00
__xinit__be:
	.db #0x00
__xinit__rf_address_decoder_enable:
	.db #0x00
__xinit__ack_flag:
	.db #0x00
__xinit__slotted:
	.db #0x00
__xinit__ack_rx:
	.db #0x00
	.area CABS    (ABS,CODE)
